RightTrim

Description

Removes spaces from the end of a string.

Syntax

RightTrim ( string )
RightTrimW ( 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. If any argument’s value is null, RightTrim returns null.

Examples

Example 1

This statement returns RUTH:

RightTrim("RUTH ")

See also