Hi MEL gurus!
Im sorry I am posting up this question as it probably is quite simple, but I have found no joy by searching! I have created a gui that uses textFieldGrp to get a string of numbers from the user, example "1, 2, 3, 500, 212" etc. I've got that into a string all fine but I need to take then numbers from the string and put them into a int array, so with the example above the array would read int $example [] = {1, 2, 3, 500, 212}. Is there a way of converting the number from the string into a int array, using the comma or white spaces in the strings as markers to signify a new number?
Hope this makes sense! thats not a brilliant description :s
to recap because i dunno if that makes sense, I want to convert a string like "string $example1 = "1, 2, 3, 4"" into a int array, which would look like "int $example2[] = {1, 2, 3, 4}" if i was declaring it.
Alternatively is there a way for textFieldGrp to do this for me?
Thank you very much in advance!