EasyManua.ls Logo

Teklynx Discover ActiveX - Page 18

Teklynx Discover ActiveX
165 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 1 -- 10
Programmer’s Guide
"
""
" Collection methods
Methods for collection are described in the following table. The
Item method is req uired; other methods are optional.
Method name Return type Description
Add VT_DISPATCH
or VT_EMPTY
Adds an item to a collec-
tion. Returns VT_DISPATCH
if object is created (object
cannot exist outside the
collection) or VT_EMPTY if
no object is created (object
can exist outside the collec-
tion).
Item Varies with
type of collec-
tion
Returns the indicated item
in the collection. Required.
The Item method may
take one or more argu-
ments to indicate the ele-
ment within the collection
to return. This method is
the default member for the
collection object.
Remove VT_EMPTY Removesanitemfroma
collection. Uses indexing
arguments in the same way
as the Item method.
The Item method takes one or more arguments to indicate the
index. Indexes can be numbers or strings.
Because Item is the default method, you could write either:
MyObject.Item(3).Name
-Or-
MyObject(3).Name
"
""
" Count Property
Returns a Long (long integer) containing the number of objects
in a collection. Read-only.

Table of Contents