I give the user a dialog box to add an unlimited list of 13 or so digit values. I get it all as one string that I dilineate with a space between each value. Now I want to parse out the string and assign each parsed value to a variable to run through another routine. I will loop through the routine with each variable value parsed. So let's say I get the following string value:
"12489908 080348 9080 893802840 093800985312 823974 4985045 "
The macro doesn't know how many sets (digits + space) the user will enter.
So I need to somehow get those values into an array without knowing how many items will end up in the array. Can someone help with this? I'll put down some really loose pseudocode I thought of for more explanation:
Do until nothing left in string
id() = get the piece of string before a space
remove that piece + the space
find out if anything is left
If anything is left do it over
Loop until nothing is left
Thanks
"12489908 080348 9080 893802840 093800985312 823974 4985045 "
The macro doesn't know how many sets (digits + space) the user will enter.
So I need to somehow get those values into an array without knowing how many items will end up in the array. Can someone help with this? I'll put down some really loose pseudocode I thought of for more explanation:
Do until nothing left in string
id() = get the piece of string before a space
remove that piece + the space
find out if anything is left
If anything is left do it over
Loop until nothing is left
Thanks