Rtrim$

Purpose:

Removes spaces or other character strings at the end of the string. If the second parameter is specified, all characters contained in this string up to the first character not contained are removed. See also Atrim$ und Ltrim$.

Parameter:

String  Source string

String  (optional) String that contains all characters that are to be removed up to the first character not contained in the source string. Default: blank space.

Return value:

String

Example:

Rtrim$('Hello World ')           Result: 'Hello World'

Rtrim$('Hello World','World ') Result: 'He'