REPLACE()  (version 5.8.03)

 

This processing command will return a search and replace string of data from either a field or variable.

Syntax is: xx = replace(fld,from,to [,flag])

 

For example:

yy="This is a test"; xx=replace(yy, "a test", "best")

 

yy will equal "This is a test" and xx will equal "This is best"

 

Flags:

"0" or no flag is case insensitive for the search

"1" is case sensitive for the search

“0” is the default