LTrim function
Syntax
LTrim(string[, trim_string])
Description
Use the LTrim function to return a string formed by deleting from the beginning of string, all occurrences of each character in trim_string. If trim_string is omitted, " " is assumed; that is, leading blanks are trimmed.
If you need to trim
a quotation mark, you need to escape it with a single ". For example
&TRIMMED = LTrim(&NAME, """");
Example
The following removes leading blanks from &NAME:
&TRIMMED = LTrim(&NAME);
The following removes leading punctuation marks from REC.INP:
&TRIMMED = LTrim(REC.INP, ".,;:!?");
Related Topics