Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Path for Dataenvironment
Message
De
12/07/2000 18:02:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00391559
Message ID:
00391571
Vues:
8
>If the same application can be set up to run using test data or live data, where is the best place to change the table paths for the form dataenvironment? Also, is there somewhere on the UT that has sample code for doing this?

I have an entry in the CONFIG.FPW that does this. It can be one of three entries:

PRODUCTION
TEST
DEVELOP

If the entry isn't found, Develop is assumed. I have a property in my application object that holds the name of the DBC. I then OPEN the DBC and SET DATABASE TO the Dbc. After that, I don't have any problems. The data always goes to the correct location.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform