agubler Posted October 18, 2008 Share Posted October 18, 2008 hi all need a bit of help!! really would like a neat function to loop through a string and retrieve values seperated by a value (i.e. comma) example string "one,two,three,four,five,six,seven,eight,nine,ten" Would like the results to be return something like this one two three four five six seven eight nine ten Many Thanks in advance! Link to comment Share on other sites More sharing options...
Mobius Posted October 18, 2008 Share Posted October 18, 2008 $a = StringSplit("one,two,three",",") FOR $i = 1 TO $a[0] ConsoleWrite($a[$i] & @LF) NEXT Link to comment Share on other sites More sharing options...
agubler Posted October 18, 2008 Author Share Posted October 18, 2008 $a = StringSplit("one,two,three",",") FOR $i = 1 TO $a[0] ConsoleWrite($a[$i] & @LF) NEXT god i'm embarrassed it was that easy, was having a mental block! thanks alot for the quick reply Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now