Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a test DBC in conjunction with the live DBC?
Message
From
08/06/1998 15:58:26
 
 
To
08/06/1998 10:34:14
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00105802
Message ID:
00106030
Views:
33
Peter;
This is one way that may work for you.
In you app set the path to include where the database is at, and open the tables without any "path" as a part of it (of course you have no contor over that in the forms, but that's not a problem). Now all you have to do is to change the path statement. When running a form VFP will first look at the directory listed in the form's data enviornment, if table is not found, then it will looke for the table in the path assigned by the SET PATH command.

Hope this helps

Kia

>Hi,
>
>I have what seems like a fairly simple question, but I find it quite puzzling. I am going live with my first VFP 5.0 application in a week. I want to keep two sets of data. Firstly, the live data which everything is set up to now, and secondly a practice database, which contains a copy of the complete database for testing purposes. Obviously I want to use the same forms and classes in both systems. Back in the Procedural days with Clipper this was easy, but it seems even though I have created a practice database all the forms are still using the data in the live database. Is there an easy way to swap back and forth between Live mode and Practice mode?
>
>TIA, Peter Renton
Previous
Reply
Map
View

Click here to load this message in the networking platform