RTrim()

Syntax

Result$ = RTrim(String$ [, Character$])
Description
Removes all the specified characters located at the end 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 end characters removed.

Example

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

See Also

RSet(), LSet(), LTrim(), Trim()

Supported OS

All

<- RSet() - String Index - RemoveString() ->