Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding class heirachy
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00080957
Message ID:
00080991
Views:
26
>I'm trying to design a procedure/method that will determine all the parents (not the containers) of a control at run time.
>Example: If I:
>    define ctrBase as custom
>    define ctrSubClass as ctrBase
>    define ctrSubSubClass as ctrSubClass
>and drop ctrSubSubClass into a form. I want to be able to locate both ctrSubClass and ctrBase by passing ctrSubSubClass to some method/procedure.
>
>I can't even think of an approach.
>
>TIA

I may be off base here, but what the heck.

FUNCTION SomeFunction
LPARAMETERS oSomeClass

oSomeClass.Parent.Parent.PropertyOrMethod

Wouldn't the 1st parent be ctrSubClass and the 2nd parent be ctrBase?

But I may not fully understand what you mean by "locate" the parents of ctrSubSubClass.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform