Home > Language Reference > String Management Functions > LTrim$

LTrim$

The LTrim$ function removes leading spaces/tabulations from the specified string.

Usage

Prefer to use Trim$ function to remove leading and trailing spaces/tabulations. 

Syntax

var$=LTrim$(<source_string>)

Parameters

<source_string>, string to remove leading spaces/tabulations from.

Return value

var$, string with the leading spaces/tabulations removed.

See also

Asc
Chr$
Encrypt
ExtractBetween$
InStr
InStrRev
LCase$
Left$
Len
Mid$
Replace$
Right$
RTrim$
SplitIntoArray
Str$
Trim$
UCase$
Val

Examples

a$ = Ltrim$(" bcde") ' Returns "bcde" in a$

a$ = Ltrim$(a$) ' Deletes the leading spaces from a$