Gets the first word from a string. The word is removed from the string to allow the function to be repeated. Word separators can be a space, newline, carriage return, or tab character.
Syntax
StrWord(String)
String:
The source string.
Return Value
A string containing the first word from String .
Related Functions
Example
Str="THIS IS A STRING";
Variable=StrWord(Str);
! Sets Variable to "THIS".
Variable=StrWord(Str);
! Sets Variable to "IS".
Variable=StrWord(Str);
! Sets Variable to "A".
Variable=StrWord(Str);
! Sets Variable to "STRING".
See Also
String Functions, Using the Caret Escape Sequence Character
Published June 2018