ADELIA |
VADELIA |
SADELIA |
WADELIA |
EADELIA |
(I/B) |
(I/B) |
(B) |
(I/B) |
(B) |
Description
This predefined function is used to adjust a character string to the left.
Syntax
Result = &LEFT_ADJUST(String)
Parameters
Description |
Contents |
Controls |
|
Result |
Alphanumeric variable. |
Left-justified character string. The result field is cleared before the function is run. |
|
String |
Alphanumeric constant or variable. |
Character string which is to be left-justified. |
Mandatory parameter. |
Note: Blank characters located on the left of the string are ignored.
If the result field is shorter than the string to be left-justified, the result is truncated on the right.
Example
NAME = 'HARDIS INTERNATIONAL '
NAME_30 = &LEFT_ADJUST(NAME)
* NAME_30 is equal to: HARDIS°INTERNATIONAL°°°°°°°°°°
*
NAME = ' HARDIS INTERNATIONAL'
NAME_30 = &LEFT_ADJUST(NAME)
* NAME_30 is equal to: HARDIS°INTERNATIONAL°°°°°°°°°°
*
NAME_15 = &LEFT_ADJUST(NAME)
* NAME_15 (15-char. long) is equal to: HARDIS°INTERNAT
List of predefined functions by topic