TRIMB()

TRIMB(), TRIMBS()

Top  Previous  Next

 

The TRIMB() function removes excess spaces from the back of a string. The TRIMBS() function is similar to TRIMB() but operates on each element of a dynamic array and returns an equivalently structured dynamic array of trimmed strings.

 

 

Format

 

TRIMB(string)

 

where

 

stringevaluates to the string to be trimmed.

 

 

The TRIMB() function removes all trailing spaces from string.

 

 

Examples

 

A = "  1  2  3  "

B = TRIMB(A)

 

This program fragment removes excess spaces from string A setting B to "  1  2  3"

 

A = "  1  2  3  " : @FM : "  4  5  6"

B = TRIMBS(A)

 

This program fragment is similar to the previous example but it shows the way in which TRIMBS() operates on the two fields separately.

B becomes "  1  2  3FM  4  5  6"

 

 

See also:

TRIM(), TRIMF(), TRIMS(), TRIMW()