DesignerWindow.confirm Method
SharePoint Designer Developer Reference |
Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons and returns a Boolean that represents the user's response. True indicates that the user clicked OK. False indicates that the user clicked Cancel.
Syntax
expression.confirm(message)
expression Required. A variable that represents a DesignerWindow object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
message | Optional | String | Specifies the message to display in the confirmation dialog box. If no value is provided, the dialog box does not contain a message. |
Return Value
Boolean
Example
The following example displays a message to the user and captures the response in a variable.
Visual Basic for Applications |
---|
|