Information générale
Catégorie:
Gestionnaire de projet
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement