18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Syntax<br />

ShowMessageBox(strMessage{ | ,{ optNumButtons | 0 | 4 }{ | ,optStrTitle } })<br />

ShowMessageBox( strMessage )<br />

ShowMessageBox( strMessage, optNumButtons )<br />

ShowMessageBox( strMessage, optNumButtons, optStrTitle )<br />

strMessage<br />

The message body that will be displayed in the box.<br />

optNumButtons<br />

A numeric flag that specifies which kind of confirmation buttons to display in the message box:<br />

Value<br />

Description<br />

0 OK button<br />

4 Yes / No buttons<br />

optStrTitle<br />

Tip: To add an exclamation mark to the box — to make it an alert or warning<br />

rather than a plain message — add 48 (vbExclamation) to this parameter. For<br />

more information, see "Examples" below.<br />

This is an optional parameter. If no value is specified, then the default is 0.<br />

The title of the message.<br />

This is an optional parameter. If no value is specified, then no title will be displayed.<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

1 Operator clicked OK.<br />

6 Operator clicked Yes.<br />

7 Operator clicked No.<br />

Examples<br />

ShowMessageBox( "The action could not be completed." )<br />

ShowMessageBox( "Continue with action", 4 )<br />

ShowMessageBox( "The action could not be completed.", 0+48, "Alert" )<br />

Page 584<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!