Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path name problems
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00409510
Message ID:
00409512
Views:
17
>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform