This object is created by using the Class statement, and it 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:

 CopyCode imageCopy Code
Dim X
Set X = New classname

Because VBScript is a late-bound language, you cannot do any of the following:

 CopyCode imageCopy Code
Dim X as New classname

-or-

 CopyCode imageCopy Code
Dim X
X = New classname

-or-

 CopyCode imageCopy Code
Set X = New Scripting.FileSystemObject

Events

Requirements

See Also

In Vbsedit, you only need to press F1 to get Help for the keyword under the cursor!


Download Now!



Download   Home  

Copyright © 2001-2024 adersοft