For n = 1 to toObj.count if compobj(toObj.Item(n), this) exit endif next>Not in this case Sergey, I only have an object reference to the item sort of like this:
>Function dosomethihng >lparameters toObj && as collection item >nindex = toObj.whatismyindex() >define bar (whatismyindex) of somemenu prompt toObj.cprompt >return >>
>>>nIdx = oCollection.getkey(cKey) >>>>>>and I now know how to get a key
>>>cKey = oCollection.getkey(nIdx) >>>>>>but how do you get either if you know neither? I have an object reference to an item but I do not know the index or key. Any ideas?