Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send msg from an object's child to grandparent
Message
De
24/02/1998 14:32:04
 
 
À
24/02/1998 13:30:49
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00080627
Message ID:
00080872
Vues:
33
>Do you know if my guess is close about why you can't refer to the parent of an object made via CREATE vs ADDOBJECT?

Yup, right on: There is no implicit relationship between a reference and its referrant like you have between an object and its container. If you need such an association, you must have a back-pointer (if you want a peer-to-peer relationship), or a reference to an intervening mediator (for an indirect linkage).

My base classes have a LogicalParent property which I use for such back ponters, among other things.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform