RightTrim

Description

Removes spaces from the end of a string.

Syntax

RightTrim ( string )

Argument

Description

string

The string you want returned with trailing blanks deleted

Returns

String. Returns a copy of string with trailing blanks deleted if it succeeds and the empty string (“”) if an error occurs.

Examples

Example 1

This expression returns RUTH:

RightTrim("RUTH ")

See also