Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Order of Instantiation Of Objects In a Container
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01198480
Message ID:
01198519
Views:
7
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform