Microsoft® Visual Basic® Scripting Edition Class Object |
Language Reference Version 5 |
Description
The object created using the Class statement. Provides access to the events of the class.
Remarks
You cannot explicitly declare a variable to be of type Class. In the VBScript context, the term "class object" refers to any object defined using the VBScript Class statement.Once you have created a class definition using the Class statement, you can create an instance of the class using the following form:
Because VBScript is a late-bound language, you cannot do any of the following:Dim X Set X = New classname
orDim X as New classname
orDim X X = New classname
Set X = New Scripting.FileSystemObject