DISPLAY
The DISPLAY statement converts the contents of the field associated with the specified item(s) from internal to external format and displays them to the user.
DISPLAY
(AT APPEARANCE # )
(1)
(2) (3) (4) (5)
(2) Application ID |
(4) Occurrence (constant/index) |
(5) Appearance (constant/index) |
The appearance number can be used if the same field appears more than once on an image. If the application ID, field name, occurrence number, and appearance number are not specified (left blank), the DISPLAY statement affects all of the items painted on the associated image.
DISPLAY is one of the characteristic-type statements. Refer to the common attributes of all the statements in this category in the Characteristic-Type Statements section of this manual.
The operation of a DISPLAY statement affects only the next generation of an image. In other words, the item characteristics are reset each time an image is produced,
Note that, because the DISPLAY statement operates on items rather than fields, this statement is meaningful only in event points that are associated with an image.
The system ignores any DISPLAY statements specified in non-image-related event points.
BLANK, BLINK, BOLD, BRIGHT, COLOR, DIM, FONT, INVERSE, NO BOLD, NO ULINE, NORMAL, PICTURE, ULINE
The DISPLAY statement is used to cause the current contents of a field to appear on the image. In this example, the customers credit status displays as BAD if the customers balance exceeds the credit limit. If it does not, OK displays.
IF TAR
CUSTOMER BALANCE GT
TAR CUSTOMER CREDIT LIMIT
T SET TAR
CUSTOMER CREDIT STATUS = BAD
F SET TAR
CUSTOMER CREDIT STATUS = OK
DISPLAY TAR
CUSTOMER CREDIT STATUS (AT APPEARANCE # )