Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Modeless forms in a very large program
Message
 
 
À
28/01/2008 11:25:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01284682
Message ID:
01286217
Vues:
24
>>One more question if I may. I am calling both of these in the Data Enviornment Load Tables event. If I don't I get errors because the control source for the text boxes, etc. do not exist. Calling the prgs from there has me a bit worried although it seems to work ok so far. Any thoughts?
>
>You can do it in form's .load(), though then any objects of the form you may need are still not instantiated. As a legal workaround, you can do it in form's .init(), you only have to design the form with .BindControls=.f., and then in .init(), when you're done with opening tables, creating cursors etc, set it to .t. (too bad it's made to work only once - there are times when unbinding controls on a flip of a switch would be cool ;).

Good idea. BTW, it's funny that we were answering about form's Load in almost exactly the same time.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform