rtrim

Trims blanks to the right of a char string.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

string rtrim (string [,charset])
string        string, charset

Description

This function strips the chars specified in charset from string until it reaches a character not specified in charset. If no char is specified, the function assumes blanks.

Example

The following strips blanks from the right of the string located in buffer parm[3].
buf = rtrim(parm[3])