943,809 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Marked Solved
  • Views: 1154
  • ASP RSS
Oct 14th, 2008
0

Constructor

Expand Post »
How can I implement a constructor / destructor for a class written in ASP ? Something like the __constructor() function of PHP. Also is there an in-built Collection Object in ASP (as in Visual Basic) ?

Thanks
Similar Threads
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005
Oct 14th, 2008
0

Re: Constructor

Got it, the Constructor function should be called
Public Sub Class_Initialize()
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005
Oct 14th, 2008
0

Re: Constructor

the Destructor is
Private Sub Class_Terminate()

But there is most probably no inbuilt Collection class.
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005
Oct 14th, 2008
0

Re: Constructor

There is no inbuilt Collection class. You can use either an Array or the Scripting.Dictionary object.
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: help:DNSLESS Connection for Password db
Next Thread in ASP Forum Timeline: Retrive images from ms-access through ASP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC