Previous Topic: &INVSTR

Next Topic: &LENGTH


&LBLSTR

Returns a string with leading blanks deleted.

&LBLSTR text

&LBLSTR is a built-in function and must be used to the right of an assignment statement.

User variables can contain leading blanks, whether entered by an operator during full-screen processing or created by other built-in functions such as &SUBSTR and &ASISTR.

&LBLSTR removes any leading blanks from the data and assigns the data remaining into the target variable of the assignment statement.

If the data consists entirely of blanks, then the target variable is set to null.

Operands:

text

Data or a variable with data from which leading blanks are to be removed.

Examples: &LBLSTR

&1 = &LBLSTR &INPUT -* If &INPUT = '  ABC', then
                    -* &1 is set to 'ABC'

Note:

The &NBLSTR function is used to remove both leading and trailing blanks. The &TBLSTR function removes only trailing blanks.

More information:

&ASSIGN

&NBLSTR

&TBLSTR