msgBox Method Return Values
The value returned by the msgBox method indicates which button has been selected, as shown in the following table.
|
Integer Value | Selected Button |
---|---|---|
MsgBox_Return_OK | 1 | OK |
MsgBox_Return_Cancel | 2 | Cancel |
MsgBox_Return_Abort | 3 | Abort |
MsgBox_Return_Retry | 4 | Retry |
MsgBox_Return_Ignore | 5 | Ignore |
MsgBox_Return_Yes | 6 | Yes |
MsgBox_Return_No | 7 | No |
If the message box dialog displays a Cancel button, pressing the Esc key has the same effect as clicking the Cancel button.