Information générale
Catégorie:
Gestionnaire de projet
>>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
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