Removes leading white space, or other specified characters, from a CHARACTER or LONGCHAR expression.
LEFT-TRIM ( expression , trim-chars )An expression (a constant, field name, variable name, or expression) whose value is a CHARACTER or LONGCHAR. If expression is a case-sensitive variable, the AVM performs a case-sensitive trim. If expression is a LONGCHAR, the result is in the same code page.A character expression that specifies the characters to be trimmed from expression. If you do not specify trim-chars, the LEFT-TRIM function removes spaces, tabs, line feeds, and carriage returns.
If expression 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 expression and trim-chars arguments can contain double-byte characters. LEFT-TRIM does not remove double-byte space characters by default.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |