Object Programming

Class...End Class Statement

Defines a class

CreateObject Function

Returns a reference to a COM component

For Each...Next Statement

Iterates through a collection or array of objects or values, returning a reference to each of the members

Function Statement

If used with the Public keyword, defines a public method of a class

GetObject Function

Returns a reference to an ActiveX object

GetRef Function

Returns a reference to a procedure that can be defined as an object’s event handler

Initialize Event

Fired when a class is first instantiated

Is Operator

Compares two object references to determine whether they are identical

Property Get Statement

Returns the value of a property

Property Let Statement

Sets the value of a property

Property Set Statement

Assigns an object reference to a property

Set Statement

Assigns an object reference to an object variable

Sub Statement

If used with the Public keyword, defines a public method of a class

Terminate Event

Fired when the last reference to an instance of a class is destroyed

With...End With Statement

Allows the implicit use of an object reference

Get VBScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.