Product SiteDocumentation Site

7.4.76. WORDLENGTH


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

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

Example 7.104. Builtin function WORDLENGTH

WORDLENGTH("Now is the time",2)       ->    2
WORDLENGTH("Now comes the time",2)    ->    5
WORDLENGTH("Now is the time",6)       ->    0