Expected '(' (VBScript)

You did not include the opening parenthesis "(" when you created a procedure declaration,

Sub mysample x // x should be enclosed within parentheses.
End Sub

or used the redim statement.

Redim x // x should be enclosed within parentheses.

To correct this error

  • Add the left (opening) parenthesis "(".

See Also

Reference

Operator Precedence (VBScript)