I get an error message "Expected Array".VB Code:
dim temp as string temp = Split(filename, " - ") temp(0) = artist temp(1) = Songname
Printable View
I get an error message "Expected Array".VB Code:
dim temp as string temp = Split(filename, " - ") temp(0) = artist temp(1) = Songname
Change that to:Quote:
Originally posted by hipopony66
VB Code:
dim temp as string
VB Code:
dim temp() as string
It's because you declared temp as a string instead of an array of strings:
VB Code:
dim temp as string 'should be this dim temp() as string
Or you could make it a variant but that is not needed.
Well it looks like I'm not the quickest draw in the west.
I won...theres a first:p