DELSTR (Delete String)

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

DELSTR deletes the substring of string that begins at the nth character, and is of length length. If length is not specified, the rest of string is deleted. If n is greater than the length of string, the string is returned unchanged. n must be a positive whole number.

Here are some examples:

DELSTR('abcd',3)       ->    'ab'
DELSTR('abcde',3,2)    ->    'abe'
DELSTR('abcde',6)      ->    'abcde'


[Back: DATE]
[Next: DELWORD]