$TRanslate()

Examples of $TRANSLATE()

The $TRANSLATE function returns a string that results from replacing or dropping characters in the first of its arguments as specified by the patterns of its other arguments.

The format for the $TRANSLATE function is:

    $TR[ANSLATE](expr1[,expr2[,expr3]])
    

$TRANSLATE() provides a tool for tasks such as changing case and doing encryption. For examples of case translation, refer to the ^%LCASE and ^%UCASE utility routines.

The $TRANSLATE() algorithm can be understood as follows: