dialog.yesNoCancel
| Syntax |
dialog.yesNoCancel (prompt)
|
| Params |
prompt is the message displayed in the dialog.
|
| Action |
Displays a dialog containing prompt and three buttons, labeled "Yes," "No," and "Cancel." It then waits for the user to click on one of the buttons.
|
| Returns |
A number; 1 if the user clicks on the "Yes" button, 2 if the "No" button and 3 if the "Cancel" button.
|
| Examples |
dialog.yesNoCancel ("Save changes before shutting down the system now?") » 3 // User doesn't want the system to be shut down!
|
| Notes |
For more control over the labels on the buttons, use dialog.threeWay. If you don't need a Cancel option, use dialog.yesNo.
|