LTRIM$()

LTRIM$(S)

RETURNS THE STRING REMOVING LEADING SPACES FROM THE STRING S (ON THE LEFT)

  • Type: Function
  • Parameter: 1
  • Group: Strings

ACTION

The function LTRIM$(S) returns the string removing leading spaces from the string S, that is on the left.

Remark: the keyword LTRIM$ ends by '$' : it means that the returned value is a string.

SYNTAX: Result$=LTRIM$(S)

  • S = string expression.
  • Result$ is a string.

USE

  • The function LTRIM$() is used to remove leading spaces from a string, on the left.

ERROR

  • If S is not a correct string expression.

EXAMPLE

print ltrim$(" abc ")+"<-"

print "abc <-"

SEE ALSO

INSERT$()

INSTR()

LEFT$()

LEN()

LOWER$()

MID$()

RIGHT$()

RTRIM$()

STR$()

STRING$()

TRIM$()

UPPER$()