VBS tutorial: object class object

Time:2021-11-28

Class object

useClassStatement. Provides access to various events of the class.

explain

Explicit declaration of a variable as a class type is not allowed. In the context of VBScript, the term “class object” refers to using VBScriptClassStatement.

in useClassStatement, you can create an instance of the class in the following form:

Dim XSet X = New classname

Since VBScript is a late constraint language, the following is not allowed:

Dim X as New classname

-Or-

Dim XX = New classname

-Or-

Set X = New Scripting.FileSystemObject