RTrim function

Official Content
This documentation is valid for:

Returns the specified character expression with all trailing blanks removed.

Syntax

RTrim( Str )

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

Type Returned:
Character

Scope

Objects: Procedure, Transaction, Web Panel
Generators: .NET, Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3)

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.

Samples

&Text = RTrim("My character expression    ")

// Result of &Text: “My character expression”

See Also

Trim function
LTrim function
TrimEnd method