Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Absolute Database Location vs. Relative
Message
From
07/03/2000 09:49:58
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00339758
Message ID:
00342687
Views:
20
>Is there any way to insure that when you setup a form with it's data environment that it will use a relative database location like:
> data\customer.dbf
>instead of:
> f:\progs\invmangr\source\data\customer.dbf

What I've found is to always build the EXE in the directory with the correct relative path to your data that you're distributing.

Do you _always_ build your application's forms in the parent directory for the data\ directory?

Also, under 5.0 I had an application "framework" in one directory that I used to spawn clones, who's data would, of course, be in a different directory. I made sure that I built the EXE in the clone's directory. I don't know if this relates to your situation, of course.

Another idea is to simply make it part of your process that you fill in the dataenvironment with the correct path before opening tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform