Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

StrWord

  • Last UpdatedJul 18, 2023
  • 1 minute read

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 .

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

Using the Caret Escape Sequence Character

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in