Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path name problems
Message
 
À
26/08/2000 03:03:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00409510
Message ID:
00409512
Vues:
18
>Why do I have to rebuild my app. everytime I change the drive letter I keep the dbf files on. Even if I put set defualt to in my main prg file and do g:\data and put path=g:\data in the config.pfw file it still is looking for some of the data files from the directory where I built the exe file from.

VFP stores the full pathname of the tables in your dataenvironment.
What you can do about this is changing the path to the correct one in your beforeopentables event.
Like placing
gcDataDir = 'YourDataDir'
in the start of your app.
You can do what you want to get that.
e.g.
Store it in a ini
Store it in a table
Make it the working directory off your app's shortcut (I do this)

Then in the Beforeopentables
This.MyCursor.Database = [&gcData\YourDBC]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform