Method
RTrim
Warning
This item was deprecated in version 2019r2. Please use String.TrimRight as a replacement.
Description
Returns the string data type passed with trailing (right side) whitespaces removed.
Usage
result=RTrim(SourceString)
OR
result=stringVariable.RTrim
Part |
Type |
Description |
---|---|---|
result |
SourceString with trailing whitespaces removed. |
|
SourceString |
The source, a copy of which, to be returned with trailing whitespaces removed. |
|
stringVariable |
Any variable of type String. |
Notes
Rtrim uses the list of unicode "whitespace" characters at http://www.unicode.org/Public/UNIDATA/PropList.txt.
Sample code
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"
Compatibility
All project types on all supported operating systems.
See also
Asc, Chr, String.IndexOf, String.Length, String.Left, String.TrimLeft, String.Middle, String.Trim functions; String data type.