>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