Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Get the Top Most Parent Class ??
Message
De
28/08/1999 19:02:02
 
 
À
28/08/1999 09:59:47
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00258800
Message ID:
00258876
Vues:
19
>How to Get the Top Most Parent Class ?? i.e.
>
>Suppose
>
>oPara=Thisform.pageframe.page1.textbox
>
>Then it shud return Thisform
>
>Same way if
>
>oPara=_screen.Myobject
>
>Then it shud return _screen...

Do you want the top most ParentClass (class hierarchay) or the topmost Container?

this.ParentClass && parent class

this.Parent && containing object

If you loop through adding a parent until the type is not an object anymore you should be able to get the outter container. Which would be the same for all objects, wouldn't it?

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform