Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path Mystery
Message
De
23/06/2004 11:23:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/06/2004 10:26:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00904943
Message ID:
00916439
Vues:
16
>Hi Cetin,
>
>Just need some clarification here.
>
>I would like to know the recommended way of running an app in vfp 8.0 and being able to switch between running it using production data out on p:\data and running it using developer test data out on c:\data. The framework of ths app is just plain vfp.
>
>Do you have to change database containers in the project depending on which database container you want to use? And then rebuild the project each time before you run it? This doesn't seem right.
>
>Even if this is done, then I have the problem opening up each form. Some open ok. Some get the error when instanciating the form that the database container cannot be found. The form's looking for the wrong one. What's the recommended way of fixing this problem?
>
>I just want to unstandstand this clearly before I make the change.
>Thanks,
>Deb

Debra,
Project is built once (or even might be tested with the data of your choice in IDE w/o building).
The DE (if form has a dataenvironment) hardcodes the path. What I do is :
From DE.OpenTables call a procedure that replaces hardcoded paths (which ppoints to development data) to locations I specify. It works nice because DE.OpenTables run before Form.load.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform