Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hacking the Project\Files Being Excluded
Message
From
03/08/1999 08:21:22
 
 
To
02/08/1999 17:22:20
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00247963
Message ID:
00249152
Views:
19
Howard:
You can set some kind of path as the app starts up in the MainProg.prg
We allow our users to select data directories and store in a property on a form. The next statement gets the directory into the path while the app is running.

set path to alltrim(set('PATH')) + ', ' + (this.DataDirectory)

We are using free tables that were referenced above, but we store our views to those tables in a dbc that is located in a sub-directory called "data" that is under the directory where the EXE is located.

* We can't find our DBCs without this next statement.
set path to fullpath("") + "data"

We also have lots of Crystal Reports that are located in a "reports" sub-directory, that is put into the path as follows:
set path to alltrim(set('PATH')) + ', ' + fullpath("") + "data"

HTH
Mike
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform