EasyManua.ls Logo

Teklynx Discover ActiveX - Page 156

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 2 -- 148
Programmer’s Guide
"
""
" Strings.Item
VTS_BSTR Item( longIndex ).
Returns a member of a collection, either by position or by name.
Note
If the value provided as Index does not match any existing
member of the collection, no object is returned.
Parameters:
longIndex RequiredVT_14orVariant
. The index number of a
member of the collection.
The index can be a numeric expression (a number from 1 to the
value of the collection’s Count property), a constant, or a string.
Note
If the value provided as Index doesn’t match any existing
member of the collection, an error occurs.
The Item method is the default method for collections. There-
fore, the following two lines of code are equivalent.
Object.Strings(1)
Object.Strings.Item(1)
"
""
" Strings.Remove
VTS_NONE Remove ( longIndex ).
Removes a member from the collection.
Parameters:
longIndex RequiredVT_I4orLong
. The index number of a
member of the collection.
Must be a numeric expression (a number from 1 to the value of
the collection’s Count property).

Table of Contents