Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > StrWord

StrWord

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

The first word from String (as a string).

Related Functions

StrSearch

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