| << G.1.0- VBScript Error Codes | AppendixG | G.1.2- Runtime Errors >> |
Syntax Errors
Syntax errors occur wherever your script contains statementsthat do not follow the pre-defined rules for that language. Note that this typeof error should be caught during development. VBScript contains 53 syntaxerrors, listed below:
| Decimal | Hexadecimal | Description |
| 1001 | 800A03E9 | Out of memory |
| 1002 | 800A03EA | Syntax error |
| 1003 | 800A03EB | Expected ':' |
| 1005 | 800A03ED | Expected '(' |
| 1006 | 800A03EE | Expected ')' |
| 1007 | 800A03EF | Expected ']' |
| 1010 | 800A03F2 | Expected identifier |
| 1011 | 800A03F3 | Expected '=' |
| 1012 | 800A03F4 | Expected 'If' |
| 1013 | 800A03F5 | Expected 'To' |
| 1014 | 800A03F6 | Expected 'End' |
| 1015 | 800A03F7 | Expected 'Function' |
| 1016 | 800A03F8 | Expected 'Sub' |
| 1017 | 800A03F9 | Expected 'Then' |
| 1018 | 800A03FA | Expected 'Wend' |
| Decimal | Hexadecimal | Description |
| 1019 | 800A03FB | Expected 'Loop' |
| 1020 | 800A03FC | Expected 'Next' |
| 1021 | 800A03FD | Expected 'Case' |
| 1022 | 800A03FE | Expected 'Select' |
| 1023 | 800A03FF | Expected expression |
| 1024 | 800A0400 | Expected statement |
| 1025 | 800A0401 | Expected end of statement |
| 1026 | 800A0402 | Expected integer constant |
| 1027 | 800A0403 | Expected 'While' or 'Until' |
| 1028 | 800A0404 | Expected 'While', 'Until' or end of statement |
| 1029 | 800A0405 | Expected 'With' |
| 1030 | 800A0406 | Identifier too long |
| 1031 | 800A0407 | Invalid number |
| 1032 | 800A0408 | Invalid character |
| 1033 | 800A0409 | Unterminated string constant |
| 1034 | 800A040A | Unterminated comment |
| 1037 | 800A040D | Invalid use of 'Me' keyword |
| 1038 | 800A040E | 'loop' without 'do' |
| 1039 | 800A040F | Invalid 'exit' statement |
| 1040 | 800A0410 | Invalid 'for' loop control variable |
| 1041 | 800A0411 | Name redefined |
| 1042 | 800A0412 | Must be first statement on the line |
| 1043 | 800A0413 | Cannot assign to non-ByVal argument |
| 1044 | 800A0414 | Cannot use parentheses when calling a Sub |
| 1045 | 800A0415 | Expected literal constant |
| 1046 | 800A0416 | Expected 'In' |
| 1047 | 800A0417 | Expected 'Class' |
| 1048 | 800A0418 | Must be defined inside a Class |
| Decimal | Hexadecimal | Description |
| 1049 | 800A0419 | Expected Let or Set or Get in property declaration |
| 1050 | 800A041A | Expected 'Property' |
| 1051 | 800A041B | Number of arguments must be consistent across properties specification |
| 1052 | 800A041C | Cannot have multiple default property/method in a Class |
| 1053 | 800A041D | Class initialize or terminate do not have arguments |
| 1054 | 800A041E | Property set or let must have at least one argument |
| 1055 | 800A041F | Unexpected 'Next' |
| 1056 | 800A0420 | 'Default' can be specified only on 'Property' or 'Function' or 'Sub' |
| 1057 | 800A0421 | 'Default' specification must also specify 'Public' |
| 1058 | 800A0422 | 'Default' specification can only be on Property Get |
| << G.1.0- VBScript Error Codes | AppendixG | G.1.2- Runtime Errors >> |

RSS
