Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Objects
Terminate Event
EVENT: Initialize
Implemented in version 5.0
Initialize
The
Initialize
event is an optional subroutine that can be called when you create an instance of a object using the
Class ... End Class
statement. You can place any valid VBScript code inside the subroutine that you want to run when the class is initialized.
The similar
Terminate
event can be called when you close an object.
Note, as shown in the code example, that the subroutine name must be composed of the word Class, an underscore ( _ ), and the word Initialize().
Code:
Class DevGuru
...
Private Sub Class_Initialize()
'place any valid VBScript code here
End Sub
...
End Class
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information