-
parsing a string?
Well I have a string (the lenght is not known)that contains commas (,). How can I parse this string and keep in variables the substrings between the commas?Meaning for example
123,1232,455,564,5466,456645,564565
andmake it
x=123
y=1232
z=455
f=564 and so long.....
I would appreciate every possible help.
thanks on advance
-
Code:
dim myarray
myarray=split("111,222,333",",")
'now you have all three values in an array
'myarray(0) = "111"
'myarray(1) = "222"
'myarray(2) = "333"
-
thanks and I have one more question
well I create an array of i positions where i=lenght of the string.
now how can I dynamically fill this positions with the values that come out of "split"?
-
Um.. didn't he already answer that? Split auto fills the array.