|dynarray||An expression that resolves to a dynamic array.|
The TRIMBS function trims trailing blank spaces from each element of a dynamic array. It returns the resulting trimmed dynamic array.
TRIMBS does not trim leading blank spaces from dynamic array elements. You can use the TRIMFS function to remove leading blank spaces from each element of a dynamic array. You can use TRIMS to remove leading, trailing, and multiple embedded blank spaces from all of the elements of a dynamic array.
You can use TRIM to remove both leading and trailing blanks from a string. You can use TRIMB to remove trailing blanks from a string. You can use TRIMF to remove leading blanks from a string.
The following example uses the TRIMBS function to trim trailing spaces:
RawDyn="North ":@VM:"South ":@VM:"East":@VM:"West..." PRINT LENS(RawDyn) TrimDyn = TRIMBS(RawDyn) PRINT LENS(TrimDyn)