Microsoft VBScript compilation (0x800A0400) - Option Explicit

Elton Brown
Elton Brown used Ask the Experts™
I am attempting to create and setup property values for my object. (Script is below)
When I run the file script it receive the followin error message:
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/verbat/SetProperties.asp, line 7
Option Explicit

Any suggestion(s) to remove this problem are welcome!

<body bgcolor="#FFFFFF" text="#000000">
Option Explicit
      Dim objTelephone
      Set objTelephone = Server.CreateObject("MyTelephone.Telephone")
      objTelephone.Color = "Blue"
      objTelephone.Material = "Thermoplastic"
      objTelephone.Weight = 22
      objTelephone.NumberIfKeys = 12
      Response.Write "Done"
      Set objTelephone = Nothing
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Is Option Explicit line 7?

Try putting
    <% Option Explicit %>
above the <HTML> tag and remove it from below.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial