Returns a specified character expression with all trailing blanks removed.
String.TrimEnd( )
Where:
String
Is the character
expression from which you want to trim all trailing blanks.
Type Returned
Character
Data Types: Character, VarChar, LongVarChar
Generators:
.NET,
Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3)
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.
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'
Trim function
LTrim function
Trim method
TrimStart method