Click to Rate and Give Feedback
MSDN
MSDN Library
Collapse All/Expand All Collapse All
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
Visual Basic Scripting Edition
VBScript Run-time Errors

VBScript run-time errors are errors that result when your VBScript script attempts to perform an action that the system cannot execute. VBScript run-time errors occur while your script is being executed; when variable expressions are being evaluated, and memory is being dynamic allocated.

Script Host Errors

The following errors are properly speaking errors pertaining to the script host, but you may see them occasionally.

Error

HRESULT

Description

SCRIPT_E_RECORDED

0x86664004

An error has been recorded to be passed between script engine and host. The host needs to pass the error code to the caller.

SCRIPT_E_REPORTED

0x80020101

Script engine has reported an unhandled exception to the host via IActiveScriptSite::OnScriptError. Host can ignore this error.

SCRIPT_E_PROPAGATE

0x8002010

A script error is being propagated to the caller which might be in a different thread. The host should pass the error code to the caller.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
VBSCRIPT method to show all errors.      wsfaso   |   Edit   |   Show History
<code>
Dim errDef, i

WScript.Echo "VBScript-Errors:"
WScript.Echo "Number", "Description"

On Error Resume Next
Err.Raise 1
errDef = Err.Description

For i=1 to 2^16-1
Err.Clear
Err.Raise i
If Err.Description <> errDef Then
WScript.Echo Left(Err.Number &;; ":" &;; Space(6), 6), Err.Description
End if
Next
</code>
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker