ApplyandRestartSequence/EndApplyandRestartSequence (Apply and Restart Sequence)

The ApplyandRestartSequence/EndApplyandRestartSequence is used to define code that should be run when the ApplyandRestart variable in the Constant table is set to true.

Syntax

ApplyandRestartSequence

‘Code to run after ApplyandRestart is set to True

EndApplyandRestartSequence

Remarks

The instructions contained within the ApplyandRestartSequence declaration will be run when the ApplyandRestart field of the ConstTable is set true by some means other than under program control (for example, using software or a keyboard display). The instructions within the declaration are run before the new values are set in the constant table and the program is recompiled.

The intent of the ApplyandRestartSequence is to allow a way for new values entered by a user into the ConstTable to be validated by the program before they are applied.

For additional information on setting up a constant table, see ConstTable/EndConstTable (Declare Constants).