Previous Page
Next Page

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 subroutine

1053

Class initialize or terminate does not have arguments

1058

Default specification can only be on property Get

1057

Default specification must also specify 'Public'

1005

Expected '('

1006

Expected ')'

1011

Expected '='

1021

Expected Case

1047

Expected Class

1025

Expected end of statement

1014

Expected End

1023

Expected expression

1015

Expected Function

1010

Expected identifier

1012

Expected If

1046

Expected In

1026

Expected integer constant

1049

Expected Let, Set, or Get in property declaration

1045

Expected literal constant

1019

Expected Loop

1020

Expected Next

1050

Expected Property

1022

Expected Select

1024

Expected statement

1016

Expected Sub

1017

Expected Then

1013

Expected To.

1018

Expected Wend

1027

Expected While or Until

1028

Expected While, Until, or end of statement

1029

Expected With

1030

Identifier too long

1014

Invalid character

1039

Invalid Exit statement

1040

Invalid For loop control variable

1013

Invalid number

1037

Invalid use of Me keyword

1038

Loop without Do

1048

Must be defined inside a class

1042

Must be first statement on the line

1041

Name redefined

1051

Number of arguments must be consistent across properties specification

1001

Out of memory

1054

Property Set or Let must have at least one argument

1002

Syntax error

1055

Unexpected Next

1015

Unterminated string constant



Previous Page
Next Page