DISPLAY FORM

Displays and associates a form with the current window.

Syntax

DISPLAY FORM identifier
[ ATTRIBUTES ( display-attributes ) ]
  1. identifier is the name of the form.
  2. window-attributes defines the display attributes of the form.
where display-attribute is:
{ BLACK | BLUE | CYAN | GREEN
| MAGENTA | RED | WHITE | YELLOW
| BOLD | DIM | INVISIBLE | NORMAL
| REVERSE | BLINK | UNDERLINE
}

Usage

The DISPLAY FORM instruction creates a form element in the current window, from a form resource loaded by the OPEN FORM instruction.

Important: The INVISIBLE display attribute is ignored.

The runtime system applies display attributes that you specify in the ATTRIBUTES clause to any fields that have not been assigned attributes by the ATTRIBUTES section of the form specification file, or by the database schema files, or by the OPTIONS runtime configuration statement. If the form is displayed in a window, color attributes from the DISPLAY FORM statement supersede any from the OPEN WINDOW statement. If subsequent CONSTRUCT, DISPLAY, or DISPLAY ARRAY statements that include an ATTRIBUTES clause reference the form, however, their attributes take precedence over those specified in the DISPLAY FORM instruction.