Displays a simple dialog box on which you can display three buttons with custom names. When users select a button, an integer is returned that corresponds to the button number. For example, if users click button #1, number 1 is returned.
Note: | If an Alert is used after the Printout (Method) in an Interactive Reporting document file deployed in the EPM Workspace, the Printout (Method) does not execute. |
Expression.Alert(Prompt As String, [Title As String], [Button1Text As String], [Button2Text As String], [Button3Text As String]) As Integer.
An expression that returns an Application object
This example shows how to display an Alert dialog and process a user response:
var ReturnVal =0 ReturnVal = Alert("Please press a button","Alert Title","One","Two","Three") switch (ReturnVal) { case 1: Alert("The user pressed the One button") break; case 2: Alert("The user pressed the Two button") break; case 3: Alert("The user pressed the Three button") break; default: Alert("An error occurred!") }