UI.Confirm Method
InfoPath Developer Reference |
Displays a message box with buttons for input from a user.
Version Information
Version Added: InfoPath 2003
Syntax
expression.Confirm(bstrPrompt, lButtons)
expression An expression that returns a UI object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
bstrPrompt | Required | String | The text message to be displayed. |
lButtons | Required | XdConfirmButtons | Specifies the number and type of buttons to display. You may specify any of the values of the XdConfirmButtons enumeration. |
Return Value
XdConfirmChoice
Remarks
Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
Example
In the following example, the Confirm method of the UI object is used to display a dialog box with Yes and No buttons.
JScript |
---|
|
See Also