Miscellaneous Constants

Since this constant is built into VBScript, you don't have to define it before using it. Use it anywhere in your code to represent the values shown.

Constant

Value

Description

vbObjectError

-2147221504

User-defined error numbers should be greater than this value, for example,

Err.Raise Number = vbObjectError + 1000

Requirements

Version 2

See Also

Color Constants
Comparison Constants
Date and Time Constants
Date Format Constants
MsgBox Constants
String Constants
Tristate Constants
VarType Constants