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

ParameterDescription
sStringString 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

SystemMinimal versionRemarks
Palm OSPalm OS 3.0-
Windows CEWindows CE 3.0-