Abstract utility objects  HandyCollection.ItemByIndex property
You can retieve each item from the collection using this property. The difference with Item property is that here numeric 1-based index is used.


variable = HandyCollection.ItemByIndex(index)

IDL definition:

[propget, id(8), helpstring("returns the indexed item")]
HRESULT ItemByIndex([in] long lIndex, [out, retval] VARIANT *pVal);


index - 1-based index which identifies the item. The value may be between 1 and Count property.


If index is out of bounds, empty VARIANT value is returned and HRESULT is set to S_FALSE. Indexes follow the sequence items were added to collection. This property is useful if you want to enumerate all items in collection.

Applies to:

HandyCollection object

newObjects Copyright 2001-2006 newObjects [ ]