Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Order of Instantiation Of Objects In a Container
Message
 
À
23/02/2007 23:17:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01198480
Message ID:
01198519
Vues:
8
>I see what you mean about the order of object instantiation possibly causing a problem later, but what is my alternative? I must USE the view before the grid instantiates--where to put the code?

Chaim,

No you don't need to open the view before the grid instantiates, you can open the view in the container's init and add a method to the container to set up the grid. Once the Init opens the view you call the other method to set up the grid. This also gives you the method in the container to reset the grid if you ever need it.

Having a container holding knowledge about its contained objects is not the problem as having sibling objects knowing about each other.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform