Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding class heirachy
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00080957
Message ID:
00080991
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform