Trim function

Official Content
This documentation is valid for:

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

Samples

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

See Also

Trim method
TrimEnd method
TrimStart method
RTrim function
LTrim function