p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Classes in VBScript/ASP


Message #1 by "Andrew Cooper" <aecooper@i...> on Thu, 15 Aug 2002 10:03:22 -0400
Ah...  I'll try that.  Thanks.

Andrew

-----Original Message-----
From: Gerhard Wentink [mailto:gerhard@d...]
Sent: Friday, August 16, 2002 2:56 AM
To: Pro ASP HowTo
Subject: [proasp_howto] RE: Classes in VBScript/ASP


Did you place the include outside the script tags <% and %>?
That is how it should be.

Regards,

Gerhard Wentink

>-----Original Message-----
>From: Andrew Cooper [mailto:aecooper@i...]
>Sent: Thursday, August 15, 2002 4:03 PM
>To: Pro ASP HowTo
>Subject: [proasp_howto] Classes in VBScript/ASP
>
>
>Greetings,
>
>	I have the following code...
>
><begin code>
>
>Class FTPage
>
><!--#include file="MessageClass.asp"-->
>
>Private oMessage
>
>'Lots of Code here...
>
>Private Sub Class_Initialize()
>
>'Initialize the Message object.
>
>	Set oMessage = New Messages
>
>End Sub
>
>'Lots of Code here.
>
>End Class
>
><End Code>
>
>	The error message I'm getting is...
>
>Error Type:
>Microsoft VBScript runtime (0x800A01FA)
>Class not defined: 'Messages'
>/FullThrustEpic/PageClass.asp, line 47
>
>	Obviously, I'm not doing the #include correctly
>somehow.  How can I get
>this to work correctly?  Essentially, I need an instance of
>the Messages
>Class in the FTPage Class.
>
>Andrew
>
>
>




  Return to Index