Abstract utility objects  HandyCollection.GetItemKey method
Given the item itself returns the key value under which this item is present in collection.


key = HandyCollection.GetItemKey(item)

IDL definition:

[id(10), helpstring("Gets key of item by itself")]
HRESULT GetItemKey([in]VARIANT varItem, [out, retval] VARIANT* pvarKey);


item - The object or value of the item which key is evaluated.
key - The Key value if the item was found. Else empty VARIANT is returned.


Use this method to evaluate the item's key value in collection using the item itself.

If the item wan't found HRESULT is set to S_FALSE.

Applies to:

HandyCollection object

newObjects Copyright 2001-2006 newObjects [ ]