Appendix E. VBScript Error Codes and the Err Object
Here you'll find all the error codes associated with VBScript along with the Err
object.
Runtime Errors
Runtime errors occur wherever your script attempts to perform an invalid action. The vast majority of these errors should be caught during the debugging and testing stage. VBScript contains 43 runtime errors, which are listed in the following table with their decimal and hexadecimal representations.
Decimal | Hexadecimal | Description |
---|---|---|
|
| Invalid procedure call or argument |
|
| Overflow |
|
| Out of memory |
|
| Subscript out of range |
|
| This array is fixed or temporarily locked |
|
| Division by zero |
|
| Type mismatch |
|
| Out of string space |
|
| Can't perform requested operation |
|
| Out of stack space |
|
| Sub or Function not defined |
|
| Err in loading DLL |
|
| Internal error |
|
| Object variable not set |
|
| For loop not initialized |
|
| Invalid use of Null |
|
| Object required |
|
| ActiveX component can't create object |
|
| Class doesn't support Automation |
|
| Filename or class name not found during Automation operation |
|
| Object doesn't support this property or method |
|
| Object doesn't support this action |
|
| Object doesn't support current locale setting |
|
| Named argument not found |
|
| Argument not optional |
|
| Wrong number of arguments or invalid property assignment |
|
| Object not a collection |
|
|
Get VBScript Programmer's Reference, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.