Opens the currently defined dialog.
Informal Syntax:
Formal Syntax:
DialogOpen( Title:=Expression, Buttons:=Expression )
Parameter | Type | Description |
---|---|---|
Title | ANY_STRING | The title that appears at the top of the dialog. |
Buttons | INT |
The buttons that appear at the bottom of the dialog:
|
An integer value indicating which button closed the dialog:
Value | Button |
---|---|
0 | Cancel |
1 | OK |
2 | Abort |
3 | Retry |
4 | Ignore |
5 | Yes |
6 | No |
Any currently running script is suspended while the dialog is open.
After the DialogOpen function completes, the currently defined dialog is reset back to empty.
In the following example, the dialog defined by the current dialog definition is opened. The dialog has the title "Confirm Action" and both OK and Cancel buttons:
Result := DialogOpen( "Confirm Action", 1 ); IF Result = 1 THEN (* OK button Pressed *) END_IF
To learn where you can use this function.
For the meaning of terms used in Fernhill SCADA.