MsgBox

Definition:

MsgBox(message[, style])

 

Description:

Display a message box including an icon indicating the type of message and one or more acknowledgement buttons.

 

Platforms:

All

 

Parameters:

message - required

String containing the text to be displayed in the message box.

 

style - optional

A string defining the message box style:

Value

Icon Included

Buttons Included

"error"

Android - Exclamation Mark

iOS - No icon

Windows Desktop - Exclamation Mark

Windows Universal - No icon

OK

 

"warning"

Android - Exclamation Mark

iOS - No icon

Windows Desktop - Exclamation Mark

Windows Universal - No icon

OK

 

"info"

Android - Info

iOS - No icon

Windows Desktop - Info

Windows Universal - No icon

OK

 

"yesno"

Android - Info

iOS - No icon

Windows Desktop - Question Mark

Windows Universal - No icon

Yes & No

 

"yesnocancel"

Android - Info

iOS - No icon

Windows Desktop - Question Mark

Windows Universal - No icon

Yes, No & Cancel

 

"okcancel"

Android - Info

iOS - No icon

Windows Desktop - Question Mark

Windows Universal - No icon

OK & Cancel

 

Omitting this parameter is the same as specifying "info". If you specify an invalid value, the message box will display with only an OK button and no icon.

 

Returns:

1

The user closed the message box using the OK button.

 

2

The user closed the message box using the Cancel button.

 

6

The user closed the message box using the Yes button.

 

7

The user closed the message box using the No button.

 

Notes:

You cannot call MsgBox within the Application Onload Event.