Xbasic
WORD_NUM Function
Syntax
Position as N = word_num(C cString ,C cWord )
Arguments
- Position
The position of the word in the list. Returns 0 if not found.
- cString
A CR-LF delimited list of words or entries.
- cWord
The word or entry to find in List.
Description
Returns what word number cWord is in CR-LF delimited cString
Discussion
The WORD_NUM() function returns the position of a word or entry in a CR-LF delimited list.
Example
dim s as C s = <<%a% bird cow chicken goat %a% ? word_num(s, "chicken") = 3 ? word_num(s, "rooster") = 0
See Also