CLOSE DIALOG

CLOSE DIALOG [USING] [DIALOG-ID]

operand1

*DIALOG-ID

This document covers the following topics:

For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.

Related Statements: OPEN DIALOG | PROCESS GUI | SEND EVENT

Belongs to Function Group: Event-Driven Programming


Function

The CLOSE DIALOG statement is used to close a dialog dynamically.

Note:
If a modal dialog is a child in a hierarchy of dialogs, the modal dialog should not close its parent(s) because this will result in a deadlock.

Syntax Description

Operand Definition Table:

Operand Possible Structure Possible Formats Referencing Permitted Dynamic Definition
operand1   S             I4                 yes no

Syntax Element Description:

Syntax Element Description
operand1
Identifier:of ID to be Closed:

operand1 is the identifier of the dialog to be closed.

*DIALOG-ID
Closing the Current Dialog:

To close the current dialog, specify the system variable *DIALOG-ID, which contains the ID of the current instance of a dialog.

Further Information and Examples

See the section Event-Driven Programming Techniques in the Programming Guide.