Opens a dialog with a title, message and an OK button.
Informal Syntax:
MessageDialog( Title, Message )
Formal Syntax:
MessageDialog( Title:=Expression, Message:=Expression )
Parameter | Type | Description |
---|---|---|
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
None.
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:
To learn about the DialogNew() function.
To learn about the DialogAddLabel() function.
To learn about the DialogOpen() function.
To learn where you can use this function.
For the meaning of terms used in Fernhill SCADA.