*ALIGNMENT (PRTPAGE)
PLBCMP GUI Only
*ALIGNMENT={*DECIMAL | *LEFT | *RIGHT | *CENTER | value}
This list control defines the variable alignment. There are four (4) possible keywords, *DECIMAL, *LEFT, *RIGHT, or *CENTER. The *DECIMAL keyword aligns the variable around the decimal point. The *LEFT keyword aligns the variable around the leftmost character. The *RIGHT keyword aligns the variable around the rightmost character. The *CENTER keyword centers the next data string around the current horizontal print position.
When used with a *CLIPTEXT={text} control, the *ALIGNMENT control controls the text output in the clipping rectangle as follows:
|
Keyword |
Value |
The {text} is |
|
*CENTER |
4 |
split in half. The left half of the {value} text is output to the left of the center point for the clipping rectangle. The right half of the {value} text is output to the right of the center point for the clipping rectangle. Text is truncated from the beginning and ending of the data when the size of the data is too large to fit in the clipping rectangle. |
|
*DECIMAL |
1 |
centered around a decimal point that exists. The decimal point is positioned to the center of the *CLIPTEXT clipping rectangle. If the {value} text data does not contain a decimal point, the {value} data is right justified to the center of the clipping rectangle. Text is truncated from the beginning and ending of the data when the data can fit in the clipping rectangle. |
|
*LEFT |
2 |
left justified in the clipping rectangle. If the *ALIGNMENT is not used for the *CLIPTEXT control, this is the default justification used. The text data may be truncated at the end of data. |
|
*RIGHT |
3 |
right justified in the clipping rectangle. Text is clipped/truncated from the beginning of the data when the size of the data is too large to fit in the clipping rectangle. |
See Also: List Controls (PRTPAGE), PRTPAGE
![]() |