LTrim function

Official Content
This documentation is valid for:

Returns the specified character expression without any blank spaces placed at the beginning of the expression. 

Syntax

LTrim(Character-expresssion)

Where:

Character-expression
    Is the character expression from which you want to trim blanks.

Type returned:
Character

Scope

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

Description

This function is especially useful for removing the blanks inserted when you use Str() function to convert a numeric value into a character string.

Note: In Cobol for iSeries the character expression can be up to 256 bytes long.

Sample

&Var = LTrim('   H e l l o')        // Result of &Var: “H e l l o”

See Also

Trim function
RTrim function
Trim method
TrimEnd method