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

ReplaceString()

This is a rexx function provided by PPWIZARD. This routine (like all PPWIZARD extensions) can be used with any operating system supported 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 it's 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.


[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)
Thursday January 17 2002 at 6:27pm