|
VBScript MsgBox constants
| CONSTANT |
VALUE |
DESCRIPTION |
| VBOKOnly |
0 |
OK button |
| VBOKCancel |
1 |
OK and cancel
buttons |
| VBAbortRetryIgnore |
2 |
abort, retry,
ignore buttons |
| VBYesNoCancel |
3 |
yes, no cancel
buttons |
| VBYesNo |
4 |
yes, no buttons |
| VBRetryCancel |
5 |
retry, cancel
buttons |
| VBCritical |
16 |
critical message
icon |
| VBQuestion |
32 |
warning query
button |
| VBExclaimation |
48 |
warning message
icon |
| VBInformation |
64 |
information
message icon |
| VBFaultButton1 |
0 |
First button
is default |
| VBFaultButton2 |
256 |
Second button
is default |
| VBFaultButton3 |
512 |
Third button
is default |
| VBFaultButton4 |
768 |
Fourth button
is default |
These constants are for Modality
| CONSTANT |
VALUE |
DESCRIPTION |
| VBApplicationModal |
0 |
Current application
will not continue until user responds to message box |
| VBSystemModal |
4098 |
No application
will continue until user responds to message box |
These are the return values identifying which buttons were selected
in the MsgBox
| CONSTANT |
VALUE |
DESCRIPTION |
| VBOK |
1 |
OK Button selected |
| VBCancel |
2 |
Cancel button
selected |
| VBAbort |
3 |
Abort button
selected |
| VBRetry |
4 |
Retry button
selected |
| VBIgnore |
5 |
Ignore button
selected |
| VBYes |
6 |
Yes button
selected |
| VBNo |
7 |
No button selected |
|
|
Sponsors
|