Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Tip o' the Day
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00361872
Message ID:
00362022
Vues:
14
>>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform