ADELIA |
VADELIA |
SADELIA |
WADELIA |
EADELIA |
(I/B) |
(I/B) |
(B) |
(I/B) |
(B) |
Description
This predefined function is used to center a character string.
Syntax
Result = &CENTER_ADJUST(String)
Parameters
Description |
Contents |
Controls |
|
Result |
Alphanumeric type variable. |
Character string centered with respect to the length of the result field. The result field is cleared before the function is run. |
|
String |
Alphanumeric variable or constant. |
Character string which is to be centered. |
Mandatory parameter. |
Note: If the result field length is shorter than the number of significant characters in the string, the result obtained is truncated on the right compared with the original string.
When this function is used in a simple assignment, the words are centered in relation to the result variable. When this function is used in a concatenation expression, the center adjust is performed in relation to an internal variable that is the same size as the function's String parameter.
Example
TITLE = 'Update or Create orders '
TITLE_CENT = &CENTER_ADJUST(TITLE)
*
* The TITLE_CENT is equal to: °°°°°Update°or°Create°orders°°°°°
*
TITLE_15 = &CENTER_ADJUST(TITLE)
*
* TITLE_15 (15-char. long) is equal to: Update°or°Creat
List of predefined functions by topic
Copyrights Ι ©Hardis Group 2025 - Any partial or total reproduction of the content, not expressly authorized by Hardis Group, is strictly prohibited.