You are currently offline, waiting for your internet to reconnect

INFO: Error Messages Shared Between VBCE and VBScript

This article was previously published under Q180751
The Windows CE Toolkit for Visual Basic 6.0 (VBCE) and eMbedded Visual Basic (eVB) share the following list of error codes and descriptions with Visual Basic Script (VBScript).
The error codes and messages are as follows:

Error Code Description

When error handling is turned on in VBCE or eVB, the Source property of the Err object will return "VBScript runtime error" when encountering one of the errors listed below.
5          Invalid procedure call or argument6          Overflow7          Out of memory9          Subscript out of range10         Array fixed or temporarily locked11         Division by zero13         Type mismatch14         Out of string space17         Can't perform requested operation28         Out of stack space35         Sub or Function not defined48         Error in loading DLL51         Internal error52         Bad file name or number53         File not found54         Bad file mode55         File already open57         Device I/O error58         File already exists61         Disk full62         Input past end of file67         Too many files68         Device unavailable70         Permission denied71         Disk not ready74         Can't rename with different drive75         Path/File access error76         Path not found91         Object variable not set92         For loop not initialized94         Invalid use of Null322        Can't create necessary temporary file424        Object required429        ActiveX component can't create object430        Class doesn't support Automation432        File name or class name not found during Automation operation438        Object doesn't support this property or method440        Automation error445        Object doesn't support this action446        Object doesn't support named arguments447        Object doesn't support current locale setting448        Named argument not found449        Argument not optional450        Wrong number of arguments or invalid property assignment451        Object not a collection453        Specified DLL function not found455        Code resource lock error457        This key already associated with an element of this collection458        Variable uses an Automation type not supported in VBScript500        Variable is undefined501        Illegal assignment502        Object not safe for scripting503        Object not safe for initializing32811      Element not found				
Syntax Errors
1001	 Out of memory 1002	 Syntax error 1003	 Expected ':' 1005	 Expected '(' 1006	 Expected ')' 1007	 Expected ']' 1010	 Expected identifier 1011	 Expected '=' 1012	 Expected 'If' 1013	 Expected 'To' 1014	 Expected 'End' 1015	 Expected 'Function' 1016	 Expected 'Sub' 1017	 Expected 'Then' 1018	 Expected 'Wend' 1019	 Expected 'Loop' 1020	 Expected 'Next' 1021	 Expected 'Case' 1022	 Expected 'Select' 1023	 Expected expression 1024	 Expected statement 1025	 Expected end of statement 1026	 Expected integer constant 1027	 Expected 'While' or 'Until' 1028	 Expected 'While', 'Until' or end of statement 1029	 Expected 'With' 1030	 Identifier too long 1031	 Invalid number 1032	 Invalid character 1033	 Unterminated string constant 1034	 Unterminated comment 1037	 Invalid use of 'Me' keyword 1038	 'loop' without 'do' 1039	 Invalid 'exit' statement 1040	 Invalid 'for' loop control variable 1041	 Name redefined 1042	 Must be first statement on the line 1043	 Cannot assign to non-ByVal argument 1044	 Cannot use parentheses when calling a Sub 1045	 Expected literal constant 1046	 Expected 'In' 1047	 Expected 'Class' 1048	 Must be defined inside a Class 1049	 Expected Let or Set or Get in property declaration 1050	 Expected 'Property' 1051	 Number of arguments must be consistent across properties specification 1052	 Cannot have multiple default property/method in a Class 1053	 Class initialize or terminate do not have arguments 1054	 Property set or let must have at least one argument 1055	 Unexpected 'Next' 1056	 'Default' can be specified only on 'Property' or 'Function' or 'Sub' 1057	 'Default' specification must also specify 'Public'") 1058	 'Default' specification can only be on Property Get				
wince vbce vbce6 evb

Article ID: 180751 - Last Review: 10/20/2003 17:31:20 - Revision: 2.1

  • Microsoft Windows CE Toolkit for Visual Basic 6.0
  • Microsoft eMbedded Visual Basic 3.0
  • kbinfo kbtoolkit kbvbp600fix KB180751