Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Message

  • Last UpdatedJul 18, 2023
  • 1 minute read

Displays a message box on the screen and waits for the user to select the OK or Cancel button.

This function is a blocking function. It will block the calling Cicode task until the operation is complete.

This function will be blocked if called from a non-client process, as well as from kernel window of a client process if [Client]DisableDisplay is set to TRUE.

Syntax

Message(Title, Prompt, Mode)

Title:

The title of the message box. The maximum length is 254 chars.

Prompt:

The prompt displayed in the message box.

Mode:

The mode of the message box:

0 - OK button

1 - OK and Cancel button

16 - Stop Icon

32 - Question Icon

48 - Exclamation Icon

64 - Information Icon

Select more than one mode by adding the modes. For example, set Mode to 33 to display the OK and Cancel buttons and the Question icon. You can only display one icon for the message box.

Return Value

0 (zero) if successful, otherwise an error is returned. If the user presses the Cancel button the function returns an error code of 299.

Input

Example

/* Display an error message in a message box. */

IF Total<>100 THEN

Message("Error","Total not 100%",48);

END

See Also

Miscellaneous Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in