Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to direct app to another data location
Message
From
16/06/2003 15:38:47
 
 
To
16/06/2003 15:27:34
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00800385
Message ID:
00800482
Views:
28
ok,let see if I follow.
You had all in ONE folder before but now you moved the data/database to the other drives and when you run the app cannot find the data.
In that case you will need on your main.prg something like:
lcDir= JUSTPATH(SYS(16,0))
SET DEFAULT TO (lcDir)
SET PATH TO .\TABLES;.\FORMS;.\MENUS;.\PROGRAMS;.\REPORTS;.\CLASSES;.\OTHER;.\GRAPHICS
in that way the program will know where to look for. If you don't give it a path it will not know where to look.



>Keep tossing those bread crumbs...I'm following. lol The app is working great now, as long as I run everything from the same basic directory structure on the same drive. I mean, my app starts out assigning a variable the value of the directory I'm currently in (so, they can load it wherever they want). Then when I call a form or report it knows where to look (do m.var+'forms\formname.scx') There is not a single place within the app where I'm actually calling a data file other than to "select" it. I have loaded the app itself into "Program files...etc" on both my C: and D: drives and have a zip drive (E:) that is the only place I have any data. The program pukes and says it can't locate the database. Even though I can locate it for the program, it happens every time I run it (Feature? Don't think I can sell it that way! lol). AND, I don't have the luxury of recompiling the program at the user end, they don't have FoxPro. Thanks, m :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform