Text forms

Forms and their types are introduced in Form part. The current page outlines how to present text forms.

The converse statement is sufficient for giving the user access to a single, fixed text form. The logical flow of your program continues only after the user responds to the displayed form. You can also construct output from multiple forms, as in the following case:

Two steps are necessary:

  1. First, you construct the order-and-item output by coding a series of display statements, each of which adds a form to a run-time buffer but does not present data to the screen. Each display statement operates on one of the following forms:

    • Top form

    • Floating form, as presented by a display statement that is invoked repeatedly in a loop

    • Bottom form

  2. Next, the EGL run time presents all the buffered text forms to the output device in response to either of these situations:

    • The program runs a converse statement; or

    • The program ends.

In most cases, you present the last form of your screen output by coding a converse statement rather than a display statement.

The fixed forms each have an on-screen position, so the order in which you specify them, in relation to each other and in relation to the repeated display of floating forms, does not matter. The contents of the buffer are erased when output is sent to the screen.

If you overlay one text form with another, no error occurs, but the following statements apply:

Whether you are presenting one form or many, the output destination is the screen device at which the user began the run unit.

Related concepts
Form part

Related reference
Form part in EGL source format
FormGroup part in EGL source format
sysLib.clearScreen