OS/2 Procedures Language 2/REXX


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


WORDLENGTH




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

WORDLENGTH returns the length of the n th blank-delimited word in string. 
n must be a positive whole number. If there are fewer than n words in the 
string, 0 is returned. 
Here are some examples: 

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

Inf-HTML End Run - Successful