Adrian Gibbons wrote:
>
> What I wish to do is split a string up into an array and then find out
> how many items are in that array.
>
> Say my string is "FOO,BAR"
>
> I have tried to use the 'Scan Strings For Tokens' VI to some success.
> It manages to find "FOO" with "," set as the delimiter. How can I
> store this in an array and then go back and retrieve the remaining
> tokens? The string contains a variable number of tokens.
>
>
> PS- I'll push my luck and ask if anyone could possibly email me
> (gibbo_97@yahoo.com) a simple VI that will do this task ๐
Now, you wouldn't want someone to devalue your learning
experience would you ๐
However, try this...
Use a "Spreadsheet string to array" vi. Set the delimeter to comma,
set the format string to %s, use
initialise array to create a 1d string
array(the length is immaterial so set it to 1) and connect this array
to the array type input of the "Spreadsheet string to array vi".
Voila, job done.
--
Remove "spamkill." when replying to this message