Rtrim$

String management function.

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$(<string$>)

Parameters

<string$>, string to be trimmed.

Return value

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

See also

Ltrim$

Trim$

Examples

 

a$ = Rtrim$("bcde ") ' Returns "bcde" in a$

a$ = Rtrim$(a$) ' Deletes the spaces at the end of a$