5 Replies Latest reply: Mar 5, 2007 8:41 AM by 807606 RSS

    string.split(";") returns wrong

    807606
      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?