Progress
Language Reference
RIGHT-TRIM Function
Removes trailing white space, or other specified characters, from a character string.
SYNTAX
string
A character expression. The string can be a constant, field name, variable name, or expression that results in a character value. If string is a case-sensitive variable, Progress performs a case-sensitive trim.
trim-chars
A character expression that specifies the characters to trim from string. If you do not specify trim-chars, the RIGHT-TRIM function removes spaces, tabs, line feeds, and carriage returns.
EXAMPLEThe following example shows the effects of the TRIM, RIGHT-TRIM, and LEFT-TRIM functions.
NOTES
- The RIGHT-TRIM function is similar to the TRIM function except that it trims characters only from the right end of the string.
- If string is a case-sensitive field or variable, then trim-chars is also treated as case sensitive. Otherwise, trim-chars is not case sensitive.
- The RIGHT-TRIM function is double-byte enabled. The specified string and trim-chars argument can contain double-byte characters. RIGHT-TRIM does not remove double-byte space characters by default.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |