PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
![]() | ![]() | ![]() | ![]() | ![]() |
ReplaceString() |
This is an inbuilt function function provided by PPWIZARD.
This function will convert all occurances of a substring as you specify.
The function takes 3 parameters as follows:
When this routine returns the rexx variable ReplaceCount will have been incremented by the number of replacements made.
Note that its faster to use BulkChar2String() to modify a whole lot of characters to strings. Of course converting single characters to other single characters is better done with the rexx translate() routine.
If you need to do case insensitive changes then use the ReplaceStringCI() routine.