Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Tip o' the Day
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00361872
Message ID:
00362022
Views:
16
>>>>Yea, that's usually what I do, except I do the index and requery in the form.Init. Not that either is wrong, just preference.
>>>>
>>>
>>>But If you have a grid pointing to this view, you get the grid evaluated twice, one for his own grid init and second for the form init.
>>>
>>>I prefer do this in the Load
>>
>>I don't quite follow Pablo. What do you mean when you say it gets evaluated twice?
>
>Well, as far as I know, the form init is runned after all the inits of every control, then if you set in desing time the recordsource to the view, this is done before you form.init ..... but I'm thinking if there is no data till the form init will run well.

Yes, you are right, the Form.Init runs after all control.Init's. But as you say, because the ControlSource is set at design-time and the view is open, just empty, at run-time there is no noticable performance hit.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform