DISPLAY

The DISPLAY statement to display data values on the screen. (To produce output within a REPORT routine, you must use PRINT, rather than DISPLAY.) The syntax of DISPLAY determines whether output appears in the Line mode overlay, or in a specified line of the current 4GL window, or in a form.

4GLREF00000132.gif

format string is a quoted string to specify a display format.

left-offset is an integer variable or a literal integer, specifying the position of the first character of the next item of output within the current line of the screen or window.

line is an integer variable or a literal integer, specifying the position of a line of the screen or of the current window.

number is a whole number, specifying an ASCII code to be displayed.

The DISPLAY statement sends output directly to the screen, or to specified fields of a screen form The DISPLAY statement cannot reference values of the ARRAY or BYTE data types. After DISPLAY is executed, changing the value of a displayed variable has no effect on the current display until you execute the DISPLAY statement again.

Sending Output to the Line Mode Overlay

The DISPLAY statement without qualifying clauses (or with the COLUMN operator) sends output to the Line mode overlay:

4GLREF00000133.gif

left-offset specifies the position of the first character of the next item of output within the Line mode overlay

Sending Output to the Current Window

If you include the AT keyword and specify coordinates, output is displayed, beginning in that location in the current 4GL window:

4GLREF00000134.gif

left-offset specifies the position of the first character of the next item of output within the current line of the screen or window.

line is an integer expression that returns a positive value, to specify a line of the current 4GL window (which can be the Application window itself, if no other 4GL window is current.)

Sending Output to a Screen Form

You can use the TO clause or the BY NAME clause to display output in the fields of a screen form, using the Formatted mode of display.

4GLREF00000135.gif

References

INPUT

DISPLAY ARRAY

DISPLAY FORM

OPEN WINDOW

OPTIONS

PRINT