Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference To the Highest Level Container
Message
 
À
26/03/2003 05:15:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00769815
Message ID:
00770194
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform