Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Database Location in a Project
Message
De
07/05/1997 12:12:44
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00030865
Message ID:
00031159
Vues:
48
>>I have a Visual Foxpro database on a network drive and I wish to create a "Demo" version of the program that our president can carry around on his laptop for demonstration purposes. This will require changing the path of the database (and all it's tables). Is there any way to do this without going into every form and report and changing the data environments?
>
>Hi Eric,
>
> What I do for creating demo versions or for creating offline modes of my apps (OFFLINE VIEWS) is to duplicate the directory structure from the network drive to the notebook. In the Init method of the data environment I specify something like the following:
>
>THIS.Cursor1.Database="\DATA\TRAINING\TRAINING.DBC"
>
>By not specifying a drive letter and by duplicating the directory structure I can run the app on the network, on my harddrive or any other drive without any changes.


Try using :
DBName=(Full Path to your database)
OPEN DATABASE (DBName)
SET DATABASE TO (DBName)

I've had reasonable results with this method. It works OK if you're running a stand alone APP and the hardwired path doesn't exist.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform