Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Get the Top Most Parent Class ??
Message
From
28/08/1999 19:02:02
 
 
To
28/08/1999 09:59:47
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00258800
Message ID:
00258876
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform