SRPL
Top  Previous  Next

(SRPL(sourcestring,searchstring,replacestring,[0|1]))

Enables searching for and replacing text within a specified string of text.

sourcestring: Specifies a string of text to search.
searchstring: Specifies text to search for.
replacestring: Specifies the replacement text.
flag: 1--replacement occurs only if the matching string is a separate item of text.
0--every matching string is replaced.  
 
The following example changes Dear Joe with Dear Anne:

SET VAR vsrpl = (SRPL('Dear Joe','Joe','Anne',1))  
 
The following example changes 04/20/64 to 04-20-64:

SET VAR vsrpl = (SRPL('04/20/64','/','-',0))