CLOSE DIALOG

#### Search Results

Search

# CLOSE DIALOG

`CLOSE DIALOG` [`USING`] [`DIALOG-ID`] |  | operand1 |
`*DIALOG-ID`

This document covers the following topics:

- CLOSE DIALOG Usage

- CLOSE DIALOG Syntax Description

- Further Information and CLOSE DIALOG Examples

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

## CLOSE DIALOG Usage

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.

## CLOSE DIALOG 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 CLOSE DIALOG Examples

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

### On this page

- CLOSE DIALOG Usage
- CLOSE DIALOG Syntax Description
- Further Information and CLOSE DIALOG Examples