Returns the specified character expression without any blank spaces placed at the beginning of the expression.
LTrim(Character-expresssion)
Where:
Character-expression
Is the character expression from which you want to trim blanks.
Type returned:
Character
Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET, .NET Framework, Java, Apple, Android,
Angular
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.
&Var = LTrim(' H e l l o') // Result of &Var: “H e l l o”
Trim function
RTrim function
Trim method
TrimEnd method