Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refering to objects in a container
Message
De
06/07/1999 13:47:06
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
06/07/1999 12:25:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00237815
Message ID:
00237848
Vues:
12
Todd-

Cetin's answer (using the button's parent property to walk up the hierarchy tree) is correct of course. Another, OO, approach would be to decouple the two object and let the container handle a message from the command button. So, instead of the command button talking directly to the grid, it would talk to the container, and the container would be responsible for passing the message along.

>I made a container that has a command button and a grid in it.
>
>I want to refer to the grid from the command button, but I am unsure how to do that. Do I use something like this::mygrid.property?
>
>How do I know that mygrid won't suffer a name change?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform