Purpose

When &#@SUPP-CANX is enabled, the operator is prevented from using the CANCEL key in a cycle.  When disabled (default), the CANCEL key can be used.

Syntax

&#@SUPP-CANX

Remarks

This option can be enabled or disabled in any type of logic routine except Logic In, Logic Out and Exit Logic for the cycle.  The system automatically prohibits Cancel in a Screen cycle if files have been updated in a subordinate cycle. For example, the developer cannot cancel an invoice header if invoice details have already been written in an invoice entry screen.

It is important to note that enabling &#@SUPP-CANX suppresses the cancelling of a record no matter what invokes the Cancel.  If you are in a record and you change the mode, the record must first be exited, which means either Cancel or EOD are automatically executed by the Virtual Machine. It is advisable to suppress the Cancel after the record process has progressed past the point of no return, this should be after some processing that cannot reversed. Also note, that it is a record level property, not a screen level property.

The setting remains for the duration of the PROIV session, or until changed by another &#@SUPP-CANX setting.

Comment on this topic

Topic ID: 520178