VBScript Syntax Errors

VBScript syntax errors occur when the structure of one of your script statements violates one or more grammatical rules that govern the use of the scripting language. VBScript syntax errors occur during the program compilation stage, before the program has begun to be executed, and are therefore sometimes referred to as compile time errors. Syntax errors are listed in Table A-8.

Table A-8. Syntax Error Numbers and Descriptions

Error Number

Description

1052

Cannot have multiple default properties/methods in a Class.

1044

Cannot use parentheses when calling a Sub.

1053

Class initialize or terminate do not have arguments.

1058

‘Default’ specification can only be on property Get.

1057

‘Default’ specification must also specify ‘Public’.

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.