Is there a list of alert codes for vbscript, like this line:
MsgBox "The registry entry does not exist." ,32,"Error!"
MsgBox "The registry entry has been removed.", 16,"Done!"
Like the 32 gives a ?.
The 16 gives a A red X.
Is there a list?
Is there a list of alert codes for vbscript, like this line:
MsgBox "The registry entry does not exist." ,32,"Error!"
MsgBox "The registry entry has been removed.", 16,"Done!"
Like the 32 gives a ?.
The 16 gives a A red X.
Is there a list?
PaulM schrieb:See "MsgBox constants" in the VBScript Docs (script56.chm):
> Is there a list of alert codes for vbscript, like this line:
>
> MsgBox "The registry entry does not exist." ,32,"Error!"
>
> MsgBox "The registry entry has been removed.", 16,"Done!"
>
> Like the 32 gives a ?.
> The 16 gives a A red X.
>
> Is there a list?
>
>
http://www.microsoft.com/downloads/d...displaylang=en
I didn't find any "Windows Script 5.7 Documentation", but that could be
my bad luck/fault.
http://msdn.microsoft.com/en-us/library/sfw6660x.aspx
read this part below, in short you need to add numbers together to get the
result you want
The first group of values (0-5) describes the number and type of buttons
displayed in the dialog box; the second group (16, 32, 48, 64) describes the
icon style; the third group (0, 256, 512, 768) determines which button is
the default; and the fourth group (0, 4096) determines the modality of the
message box. When adding numbers to create a final value for the argument
buttons, use only one number from each group.
"PaulM" <paul@xxxxxx> wrote in message
news:u18ja83zIHA.5716@xxxxxx
> Is there a list of alert codes for vbscript, like this line:
>
> MsgBox "The registry entry does not exist." ,32,"Error!"
>
> MsgBox "The registry entry has been removed.", 16,"Done!"
>
> Like the 32 gives a ?.
> The 16 gives a A red X.
>
> Is there a list?
>
>
Buttons:
OK 0
OKCancel 1
AbortRetryIgnore 2
YesNoCancel 3
YesNo 4
RetryCancel 5
Icons:
Error 16
Question Mark 32
Exclamation 48
Information 64
Response (button clicked):
OK 1
Cancel 2
Abort 3
Retry 4
Ignore 5
Yes 6
No 7
First button is the default. 0
Second button is the default. 256
Third button is the default. 512
Fourth button is the default. 768
Application modal 0
SystemModal 4096
(Note that system modal doesn't actually work.)
"PaulM" <paul@xxxxxx> wrote in message
news:u18ja83zIHA.5716@xxxxxxThe numeric values and are fine, but for readability I use the built-in
> Is there a list of alert codes for vbscript, like this line:
>
> MsgBox "The registry entry does not exist." ,32,"Error!"
>
> MsgBox "The registry entry has been removed.", 16,"Done!"
>
> Like the 32 gives a ?.
> The 16 gives a A red X.
>
> Is there a list?
>
>
button constants.
vbOKOnly
vbOKCancel
vbAbortRetryIgnore
vbYesNoCancel
vbYesNo
vbRetryCancel
vbCritical
vbQuestion
vbExclamation
vbInformation
vbDefaultButton1
vbDefaultButton2
vbDefaultButton3
vbDefaultButton4
For example:
Call MsgBox("The registry entry does not exist", vbOKOnly + vbCritical,
"Error")
These must be in the help file.
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
Thanks to everyone who reply to this message.
"ekkehard.horner" <ekkehard.horner@xxxxxx> wrote in message
news:485612d1$0$6542$9b4e6d93@xxxxxx-online.net...
> PaulM schrieb:> See "MsgBox constants" in the VBScript Docs (script56.chm):
>> Is there a list of alert codes for vbscript, like this line:
>>
>> MsgBox "The registry entry does not exist." ,32,"Error!"
>>
>> MsgBox "The registry entry has been removed.", 16,"Done!"
>>
>> Like the 32 gives a ?.
>> The 16 gives a A red X.
>>
>> Is there a list?
>>
>>
>
> http://www.microsoft.com/downloads/d...displaylang=en
>
> I didn't find any "Windows Script 5.7 Documentation", but that could be
> my bad luck/fault.
>
>
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| new codes | johnster | General Discussion | 1 | 19 Nov 2008 |
| Bar Codes | EAA Docent | Vista General | 4 | 09 Apr 2008 |
| Zip Codes!!! | stillarfish | Vista General | 3 | 13 Feb 2008 |
| How do I tell which activation codes have been used? | Luther J | Vista installation & setup | 5 | 21 Jul 2007 |