文章編號: 180751 - 上次校閱: 2003年10月20日 - 版次: 2.1

VBCE 和 VBScript 之間共用資訊: 錯誤訊息

系統提示本文適用於您使用的作業系統之外的作業系統。與您不相關的文章內容已停用。

在此頁中

全部展開 | 全部摺疊

結論

Windows CE 工具組,Visual Basic 6.0 (VBCE) 和內嵌的 Visual Basic (eVB) 與 Visual Basic 指令碼 (VBScript) 共用下列錯誤碼和說明的清單。

其他相關資訊

錯誤代碼和訊息如下:

錯誤的程式碼說明

當錯誤處理開啟中 VBCE 或 eVB Err 物件的 [資料來源] 屬性會傳回 VBScript 執行階段錯誤時遇到其中一個下面列出的錯誤。
5          Invalid procedure call or argument
6          Overflow
7          Out of memory
9          Subscript out of range
10         Array fixed or temporarily locked
11         Division by zero
13         Type mismatch
14         Out of string space
17         Can't perform requested operation
28         Out of stack space
35         Sub or Function not defined
48         Error in loading DLL
51         Internal error
52         Bad file name or number
53         File not found
54         Bad file mode
55         File already open
57         Device I/O error
58         File already exists
61         Disk full
62         Input past end of file
67         Too many files
68         Device unavailable
70         Permission denied
71         Disk not ready
74         Can't rename with different drive
75         Path/File access error
76         Path not found
91         Object variable not set
92         For loop not initialized
94         Invalid use of Null
322        Can't create necessary temporary file
424        Object required
429        ActiveX component can't create object
430        Class doesn't support Automation
432        File name or class name not found during Automation operation
438        Object doesn't support this property or method
440        Automation error
445        Object doesn't support this action
446        Object doesn't support named arguments
447        Object doesn't support current locale setting
448        Named argument not found
449        Argument not optional
450        Wrong number of arguments or invalid property assignment
451        Object not a collection
453        Specified DLL function not found
455        Code resource lock error
457        This key already associated with an element of this collection
458        Variable uses an Automation type not supported in VBScript
500        Variable is undefined
501        Illegal assignment
502        Object not safe for scripting
503        Object not safe for initializing
32811      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
				

這篇文章中的資訊適用於:
  • Microsoft Windows CE Toolkit for Visual Basic 6.0
  • Microsoft eMbedded Visual Basic 3.0
關鍵字:?
kbmt kbinfo kbtoolkit kbvbp600fix KB180751 KbMtzh
機器翻譯機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:180751? (http://support.microsoft.com/kb/180751/en-us/ )
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。