Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Modeless forms in a very large program
Message
De
24/01/2008 08:35:00
 
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:
01284924
Vues:
28
>Thanks to all of you. It is obvious that our convoluted method of programming is causing the problem. Since everyone is in agreement that it should work then I know it has to be the way we are doing things.
>
>In order to keep the size of the project small and for easer maintenance we do not put code in the forms. Each form is called from it's own prg which holds all the procedures for that form. Since the form is modeless when the prg calls the form it drops right through. I need to change this somehow. Maybe call the form and have the form init set the proper prg as a procedure file additive then clear that procedure on exit.
>

Not putting code into forms is a mistake in an OOP environment. However, presumably, lots of code should be common to many of your forms. So your first step should be to develop some form classes that contain all the common stuff. Then base your forms on those classes.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform