This discussion is archived
5 Replies Latest reply: Mar 5, 2007 6:32 AM by 807606 RSS

string.split(";") returns wrong

807606 Newbie
Currently Being Moderated
Hello.

I have some data looking like this:

Standard;Name;Price;Standard;Name;Price

This String with
split(";")
returns correct length (6)

But if one of the text in between the ';' is blank, then it skips it.

For instance:
Standard;Some name;123;Standardutstyr;Some name;
Return a length of 5 instead of 6

Why?