ui.Dialog.cancel
Cancels a parent dialog from a sub-dialog.
Syntax
cancel()
Usage
The cancel()
method followed by CONTINUE
INPUT/DISPLAY/CONSTRUCT
is equivalent to the CANCEL DIALOG
static
instruction.
Use the cancel()
method in the context of a DIALOG
block using
a SUBDIALOG
, when the DIALOG
is about to be canceled by the
SUBDIALOG
.
When calling the cancel()
method, the INT_FLAG
is set to
TRUE
, and the AFTER INPUT
, AFTER DISPLAY
,
AFTER CONSTRUCT
blocks of subdialogs, and the AFTER DIALOG
block
are executed.
Example
DIALOG mysubinput()
INPUT BY NAME ...
...
ON ACTION cancel
CALL DIALOG.cancel()
CONTINUE INPUT
END INPUT
END DIALOG