Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Item Index unk
Message
From
24/07/2003 19:36:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00813212
Message ID:
00813344
Views:
12
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
In other words I only have the Item and not the collection.

>Glenn,
>
>You would use FOR EACH and compare object property(s) to the value(s) you know.
>
>>Ok, I know now how to get an index if one knows the key to a collection item
>>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?
>>
>>Thanks
>>
>>Glenn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform