OPEN FORM

The OPEN FORM statement declares the name of a compiled 4GL form.

4GLREF00000173.gif

filename is a quoted string that specifies the name of a file that contains the compiled screen form. This can also include a pathname.

form is a 4GL identifier that you assign here as the name of the form.

To display a form, you can follow these steps:

  1. Create a form specification file. (This file should have a .PER extension.)

  2. Compile the form by using the Form Compiler. (The compiled form file has .FRM as its file extension.)

  3. Declare the form name by using the OPEN FORM statement.

  4. Display the form by using the DISPLAY FORM statement.

Once 4GL displays the form, you can activate the form by executing the CONSTRUCT, DISPLAY ARRAY, or INPUT statements.

When it executes the OPEN FORM statement, 4GL loads the compiled form into memory. (The CLOSE FORM statement is a memory-management feature to recover memory from forms that the program no longer displays on the screen.)

References

CLEAR

CLOSE FORM

CLOSE WINDOW

CURRENT WINDOW

OPEN WINDOW

OPTIONS