Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference To the Highest Level Container
Message
 
To
26/03/2003 05:15:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00769815
Message ID:
00770194
Views:
16
Yes I have used this technique. However, I was trying to find a fast solution for situation where the controls are in a container that is not part of a form.

In order to get the object reference I would have to evaluate() the results from sys(1272,object) and this takes time especially if I have to do it often.

At present I have decided to create a property for my application object that will contain a reference to the highest level container for active object.

Thanks
Simon


>>Hi
>>
>>I understand how to get a reference to the highest level container by moving up the container heirarchy but what I am looking for is suggestions for the fastest method to obtain this object reference to the highest level container. It will be called often in the application so I want the fastest technique.
>>
>>Thanks,
>>Simon
>
>Simon,
>Check sys(1272,oObject). It gives you full hierarchy. For an object where its outermost object is the form itself it returns the hierarchy beginning with form's name. You could easily stuff it with thisform.
>Cetin
Simon White
dCipher Computing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform