PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: ReplaceMacros()[Next]: ReplaceStringCI()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> ReplaceString()

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:

  1. The string which is to be translated.

  2. The FROM string.

  3. The TO string.

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.


email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: ReplaceMacros()[Next]: ReplaceStringCI()


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am