RTrim()

语法

Result$ = RTrim(String$ [, Character$])
概要
Removes all the specified characters located at the end of a string.

参数

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.

返回值

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

示例

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

参阅

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

已支持操作系统

所有

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