Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Item Index unk
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00813212
Message ID:
00813347
Views:
7
I'm not sure I understand you but if you don't have access to the collection than you have no way to find out a position of the object in the collection because the object has no "knowledge" that it's in the collection. Maybe you should store 'myindex' in the objects property at the time when you add this object to the collection?


>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.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform