Loading...
 

cancel

cancel

cancel

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top -

aborts the entire current instruction sequence. Additionally, all open progress windows are closed.

The event queue is cleared by cancel. This means, for example, that messages placed in the event queue by PostMsg are no longer processed. A running transaction is automatically cancelled.

Caution: CX_TIMED_TRIGGER, DigitalTimer, TAPI and Widgets place their events internally in the event queue via PostMsg, so that cancel can also cancel these events by mistake if they have already been placed in the event queue at that time.

A cancel does not trigger an error notification and cannot be intercepted or handled by user code.

Special case: cancel during CloseWindow

See also the description here.

During the processing of CloseWindow the events CLOSE and NON_CURRENT are triggered. If a cancel occurs during their processing, this does not lead to the termination of CloseWindow, because it cannot be rolled back to a consistent state.

Therefore, a cancel within such a message handling only leads to the termination of the handling. No transaction is terminated either.