Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROBLEM WITH PATH
Message
From
28/06/2001 22:26:51
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
 
 
To
28/06/2001 11:11:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00524539
Message ID:
00525011
Views:
20
a simple solution to pathing is to always put the data below the .prg or .exe, so it works in both design & production versions, and do NOT use a path, they tend to be slippery and put you in the weeds!

eg program in /anywhere
first level tables ( logins, company lists, etc ) in /anywhere/data
real tables ( customers, employees, etc ) in anywhere/data/company_data

so you set default to current directory ( anywhere ) to avoid refering to foxpro files, and load data/*.dbf to get started! Then if you need the company selector, the location is obvious, and you can now either set default to anywhere/data/company_data or use a routine to open the proper file and always refer to it by the same alias()
Previous
Reply
Map
View

Click here to load this message in the networking platform