Developer Documentation Library > UNICOM Intelligence Function Library > Text functions > LTrim
 
LTrim
Returns a copy of a string with any leading spaces removed.
Syntax
LTrim(<value>)
Parameters
<value>
Type: Text
Text value from which you want to remove leading spaces. See also Specifying text strings as arguments.
(return)
Type: Text
Copy of <value> with leading spaces removed.
Notes
LTrim removes white space (such as space and tab characters) that appears at the beginning of the input string. LTrim uses the rules of the input locale when interpreting white space.
If the current data value is NULL, <value> is "" and the return value is "".
Example
The following example returns a copy of the contents of the address variable with any leading spaces removed:
address.LTrim()
See also
AscW
Text functions