Purpose |
Return a copy of a
|
Syntax |
x$ = LTRIM$(MainString [, [ANY] MatchString]) |
Remarks |
MainString is the string expression from which to remove characters, and MatchString is the string expression containing the characters to remove. If MatchString is not specified, LTRIM$ removes leading spaces. LTRIM$ returns a sub-string of MainString, from the first non-MatchString (or non-space) to the end of the string. If MatchString (or a space) is not present at the beginning of MainString, all of MainString is returned. If the ANY keyword is included, MatchString specifies a list of single characters to be searched for individually. A match on any one of these as a leading character will cause the character to be removed from the result. LTRIM$ is case sensitive. |
See also |
EXTRACT$, INSTR, LEFT$, MID$, REMOVE$, REPLACE, RIGHT$, RTRIM$, STRDELETE$, STRINSERT$, STRREVERSE$, TALLY, TRIM$, VERIFY |
Example |
A$ = "0123ABC3210" A$ = LTRIM$(A$, ANY "0123456789") |
Result |
ABC3210 |