Returns the specified word from a text string. A "word" is defined as the part of a string that is delimited by the defined separator character. For example, if you specify a space (" ") as the separator, then a word is any series of characters preceded by and followed by a space (or the beginning or end of the string).
@Word( string ; separator ; number )
string
Text or text list. The string you want to scan.
separator
Text. The character that you want used to delimit a word in the string.
number
Number. A position indicating which word you want returned from string. A positive number refers to the position of the word starting from the beginning where 1 is the first word. A negative number refers to the position of the word starting from the end where -1 is the last word.
word
Text or text list. The word that holds the position specified by the number in the string; for example, if number is 3, @Word returns the third word in the string. If a text list is used, @Word returns (in list format) a word from each list that holds the specified position. Returns an empty string if number is out of range, except that 0 is equivalent to 1.
@Word("Larson, Collins, and Jensen"; " " ; 2)
@Word("Larson, Collins, and Jensen":"Sales, Marketing, and Administration";" ";2)
@Word("Larson,James,M.";",";3)
@Word(@Username;" ";2)
@Word(@Username;" ";-1)
StrToken function of LotusScript® language