Skip to main content

TRIMB

Removes trailing blanks from a string.

Synopsis

TRIMB(string)

Arguments

string An expression that resolves to a string.

Description

The TRIMB function trims blank spaces from the back end of a string (trailing blanks). It returns the resulting trimmed string.

You can use the TRIM function to remove blank spaces (or other repetitive characters) from both ends of a string. You can use the TRIMF function to remove blank spaces from the front end of a string (leading blanks).

You can use the TRIMFS and TRIMBS functions to remove leading or trailing blanks from the elements of a dynamic array.

Examples

The following example uses the TRIMB function to trim trailing spaces:

MyVar = TRIMB("  Caché  ")
        ! MyVar contains "  Caché".
PRINT LEN(MyVar),"[":MyVar:"]"

See Also

FeedbackOpens in a new tab