Button Confirm CITECT SCADA

Message

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.

Related Functions

Input 

Example

/* Display an error message in a message box. */IF Total<>100 THEN    Message("Error","Total not 100%",48);END



=================================================================

IF Message("Confirm", "Do you want to CB CLOSE %equipment% ?", 1) = 0 THEN
%equipment%_CBCO=1;
Sleep(2);
%equipment%_CBCO=0;
END

=================================================================

%equipment% adalah Addresse Ginie







Penulis : Mekanik Elektronik Informatika ~ Sebuah blog yang menyediakan berbagai macam informasi

Artikel Button Confirm CITECT SCADA ini dipublish oleh Mekanik Elektronik Informatika pada hari . Semoga artikel ini dapat bermanfaat.Terimakasih atas kunjungan Anda silahkan tinggalkan komentar.sudah ada 0 komentar: di postingan Button Confirm CITECT SCADA
 

0 komentar: