LTrim()

Syntax

Result$ = LTrim(String$ [, Character$])
Description
Removes all the specified characters located in the front of a string.

Parameters

String$ The string to trim.
Character$ (optional) The character used to trim the string. The default character is 'space'. 'Character$' has to be a one character length string.

Return value

A new string holding the original string with the front characters removed.

Example

  Debug LTrim("     This is Art")  ; Will display "This is Art"
  Debug LTrim("!!Hello Word", "!") ; Will display "Hello World"

See Also

RSet(), LSet(), RTrim(), Trim()

Supported OS

All

<- LSet() - String Index - Left() ->