Ltrim$

String management function.

The Ltrim$ function removes leading spaces/tabulations from a string.

Usage

Used to take spaces and tabulations off the beginning of a text. To avoid spaces added by mistake during data-entry, use this function.

Syntax

var$=Ltrim$(<string$>)

Parameters

<string$>, string from which to remove leading spaces.

Return value

var$, string, the string from which the leading spaces and tabulations of <string$> have been removed.

See also

Rtrim$

Trim$

Examples

 

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

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