That sort of works. The problem is that one blank Msgbox pops up accounting for the second comma in the double comma and two pop up accounting for the second & third comma in the triple comma.
I can still work with this by ignoring any strings of (If a(i) = "") but it's not quite as neat.
dim a, s as string, i as integer
s = "Phoenician,EP/S,,Phoenix,,,8/27/2009"
[COLOR=blue]Do While InStr(s, ",,") > 0
s = Replace(s, ",,", ",")
Loop[/color]
a = split(s, ",")
for i = 0 to ubound(a)
msgbox a(i)
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.