Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Modeless forms in a very large program
Message
De
25/01/2008 17:49:13
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:
01285682
Vues:
20
>The program associated with each form only handles code needed exclusively by that form. This code calls common code in the procedure files. Thus, in most cases, these programs are small. In we have two large procedure files; one containing our 'Base Library of procedures' and the other containing common procedures for the product. These two combined have about 9,000 lines of code in 60+ procedures. I can't even imagine trying to deal with that much code in that many methods in one container.

Unless the container is defined in a .prg, that is.

I've worked with an in-house framework where all the code for the form was in its DE-like object, which in turn instantiated any number of bizobjects it needed, all of which were defined in prg files. This also made a few things simpler, as the code required fewer parameters (having one oSQL object for all things SQL logically led to the handle being its property etc) and the design was proper 3-tier. And there was almost no code in the forms themselves, maybe just in some grids an occasional "return .f." in a column's .when(). All the form code was either class level (in a vcx) or local to the form - ergo, handled by the .de object and its bizobjects.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform