Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Classes - Best Practices?
Message
De
12/03/2003 17:11:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00763778
Message ID:
00765160
Vues:
25
Back in the days of FPW and FP DOS, I often found myself resorting to the following:

MAIN.PRG
DO Lib1
RETURN
...
PROCEDURE MainProc
   ...
LIB1.PRG
* library setup code
DO Lib2
* library cleanup code
RETURN

* Procedures and UDFs in Lib1
LIB2.PRG
* library setup code
DO MainProc
* library cleanup code
RETURN

* Procedures and UDFs in Lib2
The downside being that I was chewing up call levels with each library I was adding. You might say that I should just simply append the LIB1.PRG and LIB2.PRG, but in most of these cases, LIB1 and LIB2 were actually .APP files (I needed to be able to replace these libraries w/o recompiling the main .EXE).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform