rtrim

This function removes trailing whitespace from its input.

ASSIGN text := rtrim (input)

The result of the function rtrim is of type TEXT. This function has one parameter:

  1. input, type TEXT; the input.

The result of the function rtrim is the input text without the trailing whitespace.

Notes

Whitespace includes spaces, tabs and line breaks. Non-printable word processor instructions are also removed from the result, similar to the behavior of the function fragment_of_characters.

The function rtrim is designed to handle Unicode input.

Example

[@( rtrim ( "Example   " ) )] 

Result: [Example]