Sideway
output.to from Sideway
Draft for Information Only

Content

VBScript Errors
  List of Errors
 Syntax Errors
 Run-time Errors
 Script Host Errors

VBScript Errors

The errors found in VBScipt can be classified as syntax errors and run-time errors. An Err object in VBScript is used to contain information about run-time errors. The Err object is an intrinsic object with global scope. The Err object also accepts the Raise and Clear methods for generating and clearing run-time errors.

List of Errors

List of errors by Err object Error NumberHex ValueDescription55Invalid procedure call or argument66Overflow77Out of memory99Subscript out of range10AThis array is fixed or temporarily locked11BDivision by zero13DType mismatch14EOut of string space1711Can't perform requested operation281COut of stack space3523Sub or Function not defined4830Error in loading DLL5133Internal error5234Bad file name or number5335File not found5436Bad file mode5537File already open5739Device I/O error583AFile already exists613DDisk full623EInput past end of file6743Too many files6844Device unavailable7046Permission denied7147Disk not ready744ACan't rename with different drive754BPath/File access error764CPath not found915BObject variable not set925CFor loop not initialized945EInvalid use of Null322142Can't create necessary temporary file4241A8Object required4291ADActiveX component can't create object4301AEClass doesn't support Automation4321B0File name or class name not found during Automation operation4381B6Object doesn't support this property or method4401B8Automation error4451BDObject doesn't support this action4461BEObject doesn't support named arguments4471BFObject doesn't support current locale setting4481C0Named argument not found4491C1Argument not optional4501C2Wrong number of arguments or invalid property assignment4511C3Object not a collection4531C5Specified DLL function not found4551C7Code resource lock error4571C9This key is already associated with an element of this collection4581CAVariable uses an Automation type not supported in VBScript4621CEThe remote server machine does not exist or is unavailable4811E1Invalid picture5001F4Variable is undefined5011F5Illegal assignment5021F6Object not safe for scripting5031F7Object not safe for initializing5041F8Object not safe for creating5051F9Invalid or unqualified reference5061FAClass not defined5071FBAn exception occurred10013E9Out of memory10023EASyntax error10033EBExpected ':'10053EDExpected '('10063EEExpected ')'10073EFExpected ']'10103F2Expected identifier10113F3Expected '='10123F4Expected 'If'10133F5Expected 'To'10143F6Expected 'End'10153F7Expected 'Function'10163F8Expected 'Sub'10173F9Expected 'Then'10183FAExpected 'Wend'10193FBExpected 'Loop'10203FCExpected 'Next'10213FDExpected 'Case'10223FEExpected 'Select'10233FFExpected expression1024400Expected statement1025401Expected end of statement1026402Expected integer constant1027403Expected 'While' or 'Until'1028404Expected 'While', 'Until' or end of statement1029405Expected 'With'1030406Identifier too long1031407Invalid number1032408Invalid character1033409Unterminated string constant103440AUnterminated comment103740DInvalid use of 'Me' keyword103840E'loop' without 'do'103940FInvalid 'exit' statement1040410Invalid 'for' loop control variable1041411Name redefined1042412Must be first statement on the line1043413Cannot assign to non-ByVal argument1044414Cannot use parentheses when calling a Sub1045415Expected literal constant1046416Expected 'In'1047417Expected 'Class'1048418Must be defined inside a Class1049419Expected Let or Set or Get in property declaration105041AExpected 'Property'105141BNumber of arguments must be consistent across properties specification105241CCannot have multiple default property/method in a Class105341DClass initialize or terminate do not have arguments105441EProperty set or let must have at least one argument105541FUnexpected 'Next'1056420'Default' can be specified only on 'Property' or 'Function' or 'Sub'1057421'Default' specification must also specify 'Public'1058422'Default' specification can only be on Property Get40961000Microsoft VBScript compilation error50161398Regular Expression object expected50171399Syntax error in regular expression5018139AUnexpected quantifier5019139BExpected ']' in regular expression5020139CExpected ')' in regular expression5021139DInvalid range in character set300007530EN327667FFETrue327677FFFFalse327688000OK327698001Cancel327708002Help32811802BElement not found32812802CThe specified date is not available in the current locale's calendar

Syntax Errors

VBScript syntax errors are errors that result when the structure of one of the VBScript statements violates one or more of the grammatical rules of the VBScript scripting language. VBScript syntax errors occur during the program compilation stage, before the program has begun to be executed. Followings are a list of syntax error order by description

Error NumberHex ValueDescription105241CCannot have multiple default property/method in a Class1044414Cannot use parentheses when calling a Sub105341DClass initialize or terminate do not have arguments1058422'Default' specification can only be on Property Get1057421'Default' specification must also specify 'Public'10053EDExpected '('10063EEExpected ')'10113F3Expected '='10213FDExpected 'Case'1047417Expected 'Class'1025401Expected end of statement10143F6Expected 'End'10233FFExpected expression10153F7Expected 'Function'10103F2Expected identifier10123F4Expected 'If'1046416Expected 'In'1026402Expected integer constant1049419Expected Let or Set or Get in property declaration1045415Expected literal constant10193FBExpected 'Loop'10203FCExpected 'Next'105041AExpected 'Property'10223FEExpected 'Select'1024400Expected statement10163F8Expected 'Sub'10173F9Expected 'Then'10133F5Expected 'To'10183FAExpected 'Wend'1027403Expected 'While' or 'Until'1028404Expected 'While', 'Until' or end of statement1029405Expected 'With'1030406Identifier too long1032408Invalid character103940FInvalid 'exit' statement1040410Invalid 'for' loop control variable1031407Invalid number103740DInvalid use of 'Me' keyword103840E'loop' without 'do'1048418Must be defined inside a Class1042412Must be first statement on the line1041411Name redefined105141BNumber of arguments must be consistent across properties specification10013E9Out of memory105441EProperty set or let must have at least one argument10023EASyntax error105541FUnexpected 'Next'1033409Unterminated string constant

Run-time Errors

VBScript run-time errors are errors that result when the VBScript script attempts to perform an action that the system cannot execute. VBScript run-time errors occur while the script is being executed; when variable expressions are being evaluated, and memory is being dynamic allocated. Followings are a list of run-time error order by description

Error NumberHex ValueDescription4291ADActiveX component can't create object5071FBAn exception occurred4491C1Argument not optional1711Can't perform requested operation4301AEClass doesn't support Automation5061FAClass not defined11BDivision by zero4830Error in loading DLL5020139CExpected ')' in regular expression5019139BExpected ']' in regular expression4321B0File name or class name not found during Automation operation925CFor loop not initialized5011F5Illegal assignment5133Internal error5051F9Invalid or unqualified reference4811E1Invalid picture55Invalid procedure call or argument5021139DInvalid range in character set945EInvalid use of Null4481C0Named argument not found4471BFObject doesn't support current locale setting4451BDObject doesn't support this action4381B6Object doesn't support this property or method4511C3Object not a collection5041F8Object not safe for creating5031F7Object not safe for initializing5021F6Object not safe for scripting4241A8Object required915BObject variable not set77Out of memory281COut of stack space14EOut of string space66Overflow3523Sub or Function not defined99Subscript out of range50171399Syntax error in regular expression4621CEThe remote server machine does not exist or is unavailable10AThis array is fixed or temporarily locked13DType mismatch5018139AUnexpected quantifier5001F4Variable is undefined4581CAVariable uses an Automation type not supported in VBScript4501C2Wrong number of arguments or invalid property assignment

Script Host Errors

The following errors are properly speaking errors pertaining to the script host, but these errors may be seen occasionally.

ErrorHRESULTDescriptionSCRIPT_E_RECORDED0x86664004An 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_REPORTED0x80020101Script engine has reported an unhandled exception to the host via IActiveScriptSite::OnScriptError. Host can ignore this error.SCRIPT_E_PROPAGATE0x8002010A 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.

©sideway

ID: 180400015 Last Updated: 4/15/2018 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019