Description
RTrim removes all spaces to the right of the given string and returns it.
Action
RTrim removes all spaces to the right of the given string and returns it.
Typical uses
Use this function any time there are trailing blanks in a text object that may interfere with an alignment of text strings, a character count, or with a calculation (if the string is eventually converted to a Number).
Use whenever you combine (concatenate) justified text strings and want to have the proper spacing between strings.
Examples
RTrim("Al/4520/B12 ")
Returns "A1/4520/B12".
RTrim({file.REFERENCE})
Returns "Bal Fwd." where {file.REFERENCE} contains the left-justified text string "Bal Fwd. ".