PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: Standard Rexx Routines[Next]: Rexx Fragments - Kick Start
\ -> Rexx -> Standard Rexx Routines -> translate()

translate()

This is a standard Standard Rexx Routines, there are many more (only a small number are documented in this manual). Only a summary is described here, for more complete and accurate information about this and other rexx routines you will need to obtain some rexx documentation.

This routine is passed a string and a translated result is returned. The string is translated a character at a time, and if only a single parameter was passed converts the string to upper case (english characters).

The ToLowerCase() and ToUpperCase() functions can be used to convert between cases (with international support).

To perform other sorts of translations supply an "output" followed by an "input" character string. Any character in the "input" string is converted to the matching character in the output string.

Note that the ppwizard BulkChar2String() routine can convert single characters to any length strings and that ReplaceString() can replace strings with strings.

EXAMPLES

;--- Convert to upper case ---
InUpper = translate("asdf")

;--- Convert "\" to "/" ------
NewStr = translate(OldStr, "/", "\")


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

[Top][Contents][Search][Prev]: Standard Rexx Routines[Next]: Rexx Fragments - Kick Start


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm