Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Scripting
VBScript
Class Object

  Switch on low bandwidth view
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
Visual Basic Scripting Edition
Class Object

This object is created by using the Class statement, and it provides access to the events of the class.

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:

Dim X
Set X = New classname

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

Dim X as New classname

-or-

Dim X
X = New classname

-or-

Set X = New Scripting.FileSystemObject
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker