3.2.62. WORDLENGTH(string,wordno)

Returns the number of characters in blank delimited word number
number in string. If number (which must be a positive whole
number) refers to an non-existent word, then 0 is returned.
Trailing or leading blanks do not count when calculating the
length.

     WORDLENGTH(‘To be or not to be’, 3)     –>   ‘2’
     WORDLENGTH(‘To be or not to be’, 4)     –>   ‘3’
     WORDLENGTH(‘To be or not to be’, 0)     –>   ‘0’



PREV NEXT