Official Content

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, Panel, Data Provider
Generators: .NET.NET Framework, Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3), Apple, Android, Angular

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

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant