RTrim Function

Official Content
This documentation is valid for:

To return the specified character expression with all trailing blanks removed.

Syntax

RTrim( Str )

Type Returned
Character

Where:
Str
Is the character expression from which you want to trim all trailing blanks.

Description

Returns a character string that results from removing the trailing blanks from the character expression Str.

Note:

In Cobol for iSeries this function is ignored because the strings length is fixed.

Example

&Text = RTrim("My character expression    ") 
// Result of &Text: “My character expression”

Scope

Objects: Procedures, Transactions, Web Panels
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3)

See Also

Trim function
LTrim function
TrimEnd Method








Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.