DELWORD

 ───DELWORD(string,n ─┬───────────┬─)──────
                        └──,length──┘

DELWORD deletes the substring of string that starts at the n th word. The length option refers to the number of blank-delimited words. If length is omitted, it defaults to be the remaining words in string. n must be a positive whole number. If n is greater than the number of words in string, string is returned unchanged. The string deleted includes any blanks following the final word involved.

Here are some examples:

DELWORD('Now is the  time',2,2)  ->  'Now time'
DELWORD('Now is the time ',3)    ->  'Now is '
DELWORD('Now is the  time',5)    ->  'Now is the  time'


[Back: DELSTR (Delete String)]
[Next: DIGITS]