Home > Language Reference > Functions > Strings
RTrim Function
Returns a copy of a string without trailing spaces and tabs.
Syntax
Public Function RTrim ( ByRef sString As String) As String
| Parameter | Description |
| sString | String whose trailing spaces and tabs are to be removed. |
Remarks
The string returned by RTrim is a copy of sString with all trailing spaces and tabs removed. The string parameter sString passed to the function RTrim is not modified.
To remove the leading spaces from a string, you should use the function LTrim. To remove leading and trailing spaces from a string, you should use the function Trim.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | - |
| Windows CE | Windows CE 3.0 | - |