PERFORM STATEMENT - FINAL TRIGGER IN FORM LAYOUTS

PERFORM specifies the Process Module (PM) trigger to be executed when the user has pressed one of the keys defined in @CANCEL_CODE or @END_CODE.

The @FILL_ACTION system field is used to communicate between the PM trigger and the form operation.  When the specified PM trigger is executed, @FILL_ACTION contains the form's termination status.  The termination status can be one of the following values:

During the execution of the trigger, the value can be changed in @FILL_ACTION.  If @FILL_ACTION is not changed, the FILL statement is terminated after the execution of the trigger.  To restart the form operation requires that one of the following values to be assigned to @FILL_ACTION:

If the form is operated at the command level, this statement is ignored.  This statement is also ignored in a PM if the specified trigger does not exist.

SYNTAX

/[PERFORM final_trigger_name]

final_trigger_name

specifies the name of a trigger in the PM.

EXAMPLE

/PERFORM SUMMARY

This statement specifies that the PM trigger SUMMARY should be executed when the form is completed.  The trigger must be the name of a ROUTINE or TRIGGER in the PROCESS SECTION of a PM.

Back to Selection Statement    Next page Border Statement