>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