Quit all if canceled

Command group Flag affected Reversible Execute on client Platform(s)
Methods NO NO NO All

Syntax

Quit all if canceled

Description

This command quits all methods that are running when the user clicks on a Cancel button inside a working message dialog box. The keyboard equivalent to the Cancel pushbutton is the Escape key under Windows and Linux, or Cmnd-period under macOS. Note that the test for cancel is carried out in Working message only if Disable cancel test at loops has first been executed.

Example

; Quit the current and all other methods currently running
; if the cancel button is pressed on the working message
Begin reversible block
  Disable cancel test at loops
End reversible block
Repeat
  Working message (Cancel button,Repeat count)
  Quit all if canceled
  Calculate iMyVar as iMyVar+1
Until iMyVar=500000