Official Content

Returns a specified character expression with all trailing blanks removed.

Syntax

String.TrimEnd( )

Where:

String
   Is the character expression from which you want to trim all trailing blanks.

Type Returned
Character

Scope

Data Types: Character, VarChar, LongVarChar
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 String.

Note: In Cobol for iSeries this function is ignored, because the string's length is fixed.

Samples

By defining the following code in an Event:

&Text = ' My character expression '
&FinalText = &Text.Trim()

you will go from this:

&Text = '   My character expression   '

to this:

&FinalText: '   My character expression'

See Also

Trim function
LTrim function
Trim method
TrimStart method

   


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