Trim$ – String Management Function**





Trim$ Function


Description

The Trim$ function removes the leading and trailing spaces/tabulations from a string.

Usage

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

Syntax

var$ = Trim$()

Parameters

<string$>: string to be trimmed.

Return Value

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

See Also

Examples


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