MsgBox Method

Displays a message in a dialog box, waits for the user to click a button, and returns a value indicating which button the user clicked.  

Corresponds to the MsgBox action.

App.MsgBox(Prompt, Title[, Icon][, Button])

Client support

   Newlook Smartclient

   Newlook Server

Arguments

Prompt - (String, Required)

String expression displayed as the message in the dialog box.

Title - (String, Required)

String expression displayed in the title bar of the dialog box.

Icons - (Integer, Optional)

Integer expression that specifies the icon to be displayed in the body of the message box.

It should be one of the pre-defined Icon constants. If omitted, no icon will be displayed.

Buttons - (Integer, Optional)

Integer expression that is the sum of values specifying the number and type of buttons to display, the icon style to use, the identity of the default button, and the modality of the message box.

It should be one of the predefined Button constants. If omitted, the default value for buttons is nlMsgOKOnly.

Returns

The MsgBox method returns an integer that identifies which button was clicked by the user to close the message box.  The return value will be one of the pre-defined Result constants.

Applies To

App object

See Also

MsgBox action | InputBox method | SetValue method


© 2004-2021 looksoftware. All rights reserved.