Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Environment vs Hard Coding Open of Tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00087199
Message ID:
00087244
Vues:
39
>Hi All,
>
>I cannot find anywhere a discussion on the relative merits of :
>
>- Using the Data Environment to open all required files
>- Coding the Opening of files
>- Using Table Views.
>
>Any ideas, or any article one can refer me to ?
>
>Thank you.
>Michel Creppy.

I use a combination of both. Tables that I know are going to be needed are put in the DE at design time. Views are typically loaded from a datamgr class that I have for each form. Each class knows what views are needed by it and are automatically loaded in the .BeforeOpenTables() event of the DE.....which of course opens them for me. Views that are not loaded at that point because of the infrequency of use, are opened in code and closed after their use.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform