Link to home
Start Free TrialLog in
Avatar of Elton Brown
Elton BrownFlag for Canada

asked on

Microsoft VBScript compilation (0x800A0400) - Option Explicit

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!

<html>
<head>
<title></title>
</head>
<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
%>
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of chenkewind
chenkewind
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial