RTrim
From Xojo Documentation
This item was deprecated in version 2019r2. Please use String.TrimRight as a replacement. |
Method
Returns the string data type passed with trailing (right side) whitespaces removed.
Syntax
result=RTrim(SourceString)
OR
result=stringVariable.RTrim
Part | Type | Description |
---|---|---|
result | String | SourceString with trailing whitespaces removed. |
SourceString | String | The source, a copy of which, to be returned with trailing whitespaces removed. |
stringVariable | String | Any variable of type String. |
Notes
Rtrim uses the list of unicode "whitespace" characters at http://www.unicode.org/Public/UNIDATA/PropList.txt.
Examples
This example removes the whitespaces from the right side of the string passed:
Var s As String
s = RTrim(" Hello World ") // Returns " Hello World"
s = " Hello World "
s = s.RTrim //Returns " Hello World"
s = RTrim(" Hello World ") // Returns " Hello World"
s = " Hello World "
s = s.RTrim //Returns " Hello World"
See Also
Asc, Chr, InStr, Len, Left, LTrim, Mid, Trim functions; String data type.