Section A.13. Object Programming

A 13 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

Defines a function

GetObject Function

Returns a reference to a COM object

GetRef Function

Returns a reference to a procedure that can be used 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

Defines a sub; that is, a procedure that does not return a value

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





Vbscript in a Nutshell
VBScript in a Nutshell, 2nd Edition
ISBN: 0596004885
EAN: 2147483647
Year: 2003
Pages: 335
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net