# Uses optional arguments.
returnValue = userInterface_var.messageBox(text, title, buttons, icon)
MessageBoxButtonTypes Enumerator
| YesNoCancelButtonType | 4 | The message box contains Yes, No, and Cancel buttons. |
DialogResults Enumerator Description
Defines the valid return types from a dialog.
Defined in namespace "adsk::core" and the header file is <Core\CoreTypeDefs.h>
Methods
| Name | Value | Description |
| DialogCancel | 1 | The dialog box return value is Cancel (usually sent from a button labeled Cancel). |
| DialogError | -1 | An unexpected error occurred. |
| DialogNo | 3 | The dialog box return value is No (usually sent from a button labeled No). |
| DialogOK | 0 | The dialog box return value is OK (usually sent from a button labeled OK). |
| DialogYes | 2 | The dialog box return value is Yes (usually sent from a buttons labeled Yes and Retry). |
MichaelT