Function group | Execute on client | Platform(s) |
---|---|---|
String | NO | All |
strtok('string1',string2)
Tokenises string1, using string2 as the delimiter with which to tokenize.
This function returns tokens which are a substring of string1 until any character in string2 matches a character in string1. When strtok() is called, the token found in string1 is removed, so that the function looks for the next token the next time it is called.
Note: strtok() does not support null characters in string1 or string2.
Calculate lString1 as "The quick brown fox, jumped over the lazy dog"
Repeat Calculate lString2 as strtok('lString1'," ")
OK message {Token = [lString2]}
Until lString2=''
# returns each word in lString1 in an OK Message