General information
Category:
Object Oriented Programming
I agree with Sergey and Cetin, moreso after hearing your explanation.
If you're using a parameterized view, open it with USE (theview) NODATA. You can Requery() it when its parameters are available *any time* without regard to the order of instantiation.
You DO NOT need to fiddle with instantiation order to get that view available to your grid.
ZORDER() is a simple method. It only does two things: send to front and send to back. The front-to-back order (or Z order) controls instantiation order.
Dan
>Hi Sergey and Cetin,
>
>Thanks for your warning about relying on instantiation order. This is why I have to do it: I am building a control which will be placed on various forms. The control contains a grid whose control source is a local view that requires parameters to be set which must be done in code. I must set the parameters and open the local view before the grid instantiates. To do this, I am placing another object (let's call it a loader object) on the control whose Init method will open the local view. Therefore, this loader object must be instantiated before the grid. I can't think of any other way to do it. Any ideas?
>
>Sergey, I see the method ZOrder. I don't understand how I call it to set the instantiation order of objects within a container, can you explain?
>
>Thanks, Chaim
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only