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


Return value

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

Examples

This expression returns RUTH:

RightTrim("RUTH ")

See also

LeftTrim

Trim

RightTrim in the section called “RightTrim” in PowerScript Reference