RTRIM$()

RTRIM$(S)

RETURNS THE STRING REMOVING TRAILING SPACES FROM THE STRING S (ON THE RIGHT)

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

ACTION

The function RTRIM$(S) returns the string removing trailing spaces from the string S, that is on the right.

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

SYNTAX: Result$=RTRIM$(S)

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

USE

  • The function RTRIM$() is used to remove trailing spaces from a string.

ERROR

  • If S is not a correct string expression.

EXAMPLE

print rtrim$("->"+" abc ")

print "-> abc"

SEE ALSO

INSERT$()

INSTR()

LEFT$()

LEN()

LOWER$()

LTRIM$()

MID$()

RIGHT$()

STR$()

STRING$()

TRIM$()

UPPER$()