Progress
Language Reference
LEFT-TRIM Function
Removes leading white space, or other specified characters, from a character string.
SYNTAX
string
A character expression. The string can be defined as a constant, field name, variable name, or expression. If string is a case-sensitive variable, Progress performs a case-sensitive trim.
trim-chars
A character expression that specifies the characters to be trimmed from string. If you do not specify trim-chars, the LEFT-TRIM function removes spaces, tabs, line feeds, and carriage returns.
EXAMPLEThe following example shows the effect of the TRIM, LEFT-TRIM, and RIGHT-TRIM functions on a string value.
NOTES
- The LEFT-TRIM function is similar to the TRIM function except that it trims characters only from the left end of the string.
- If string is a case-sensitive field or variable, then trim-chars is also as case sensitive. Otherwise, trim-chars is not case sensitive.
- The LEFT-TRIM function is double-byte enabled. The specified string and trim-chars argument can contain double-byte characters. LEFT-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 |