RTrim$ – String Management Function**





RTrim$ Function


Description

The RTrim$ function removes the trailing spaces/tabulations from a string.

Usage

Used to take spaces, tabulations and CRLF off the end of a text. To avoid spaces added by mistake during data-entry, use this function.

Syntax

var$ = RTrim$()

Parameters

<string$>: string to be trimmed.

Return Value

var$: string, return value containing the trimmed string.

See Also

Examples


a$ = RTrim$("bcde ") ' Returns "bcde" in a$
a$ = RTrim$(a$) ' Deletes the spaces at the end of a$