TRIMB Function

The TRIMB function removes any trailing blank spaces from the given string.

Format

TRIMB(expr)

Parameter(s)

expr

An expression evaluating to the string to be trimmed.

Description

The TRIMB function removes all trailing spaces. Any spaces embedded in the string or leading the string are left intact.

Example

In this application the TRIMB and TRIMF functions are used on the address input by the operator:

PRINT "ENTER YOUR ADDRESS : " :

INPUT ADDRESS

ADDRESS = TRIMF(ADDRESS)

ADDRESS = TRIMB(ADDRESS)

See Also

Statement and Function Reference