OS/2 Procedures Language 2/REXX


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


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'
  

Inf-HTML End Run - Successful