FLUSH STATEMENT/COMMAND

FLUSH removes the form and its associated windows from memory.  If the form is displayed on the screen, the FLUSH statement/command also erases the form off the screen.

After a FLUSH the form ID is removed and is not available.  A FLUSH should be executed for each form if it is no longer needed.  This will free memory space used by the process.

SYNTAX

FLUSH form_id [{IF; UNLESS} clause] [iterate_clause]

form_id

is an integer field that contains the form ID returned by GENERATE.  This field can be a valid user-defined field, a Global Storage (GS) field, or a system field.

EXAMPLE

FLUSH %FILL_ID IF (%FILL_ID NE 0)

This statement/command removes the form and its associated window(s) from memory if %FILL_ID is not equal to zero.  The form ID is in the GS field %FILL_ID.

Back to Fill Statement/Command    Next page Form-Related System Fields