MessageDialog Function

Help Contents

Introduction

Opens a dialog with a title, message and an OK button.

Syntax

Informal Syntax:

MessageDialog( Title, Message )

Formal Syntax:

MessageDialog( Title:=Expression, Message:=Expression )

Parameters

ParameterTypeDescription
Title ANY_STRING The title that appears at the top of the dialog.
Message ANY_STRING The message to display in the dialog.

The MessageDialog() function is logically equivalent to:

FUNCTION MessageDialog
VAR_INPUT
    Title : WSTRING;
    Message : WSTRING;
END_VAR

    DialogNew();
    DialogAddLabel( Message );
    DialogOpen( Title, 0 );
END_FUNCTION

Return Value

None.

Example

In the following example, the operator action code displays the Message Dialog. The title of the dialog is "Stop Sent". The message in the dialog is "The stop command has been sent".

MessageDialog(
        "Stop Sent", 
        "The stop command has been sent.");

The following image shows the dialog displayed by the preceding code example:

Message Dialog

Further Information

DialogNew

To learn about the DialogNew() function.

DialogAddLabel

To learn about the DialogAddLabel() function.

DialogOpen

To learn about the DialogOpen() function.

Operator Actions

To learn where you can use this function.

Glossary

For the meaning of terms used in Fernhill SCADA.