Product SiteDocumentation Site

7.4.75. WORDINDEX


>>-WORDINDEX(string,n)-----------------------------------------><

Returns the position of the first character in the nth whitespace-delimited word in string or returns 0 if less than n words are in string. n must be a positive whole number.
Here are some examples:

Example 7.103. Builtin function WORDINDEX

WORDINDEX("Now is the time",3)    ->    8
WORDINDEX("Now is the time",6)    ->    0