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

Got it, the Constructor function should be called
Public Sub Class_Initialize()

the Destructor is
Private Sub Class_Terminate()

But there is most probably no inbuilt Collection class.

There is no inbuilt Collection class. You can use either an Array or the Scripting.Dictionary object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.