Official Content

Returns the specified character expression with all leading and trailing blanks removed.

Syntax

Trim(character-expression)

Where:

character-expression
     Is the character expression from which you want to trim all leading and trailing blanks.

Type returned:
Character

Scope

Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET, .NET Framework, Java, Apple, Android, Angular

Samples

&Var = Trim('   My character expression   ') 
// Result of &Var: “My character expression”

See Also

Trim method
TrimEnd method
TrimStart method
RTrim function
LTrim function







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