DialogOpen Function

Introduction

Opens the currently defined dialog.

Informal Syntax:

DialogOpen( Title, Buttons )

Formal Syntax:

DialogOpen( Title:=Expression, Buttons:=Expression )

Parameters

ParameterTypeDescription
Title ANY_STRING The title that appears at the top of the dialog.
Buttons INT An integer value defining the buttons that appear at the bottom of the dialog.
0 = OK, 1 = OK and Cancel.

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.

Return value

An integer value indicating which button closed the dialog:

ValueButton
0Cancel
1OK

Examples

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:

DialogOpen( "Confirm Action", 1 );

Further Information

Operator Actions

To learn where you can use this function.

Glossary

For the meaning of terms used in Fernhill SCADA.