Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem of Path for View
Message
 
 
To
28/12/1999 11:49:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00307239
Message ID:
00309240
Views:
33
>Hi,
> I have some question would like to ask after I tried to solve the problem:
>
>1. VFP will serach the database from the DEFAULT directory even the "database" in property set to other directory. The problem will be solve after I SET DEFAULT to the path which the DBC stored. Does it the way?
>
>2. Even I change the path of "database", VFP still prompt error message of error inititaing , and it show the path of my DEFAULT DIR. What is going wrong?
>
>Thank yuo

In my start up EXE that launches my APPs, I search for the DBC. If the DBC is not found in the search path, I prompt the user to locate the directory where the database resides. I then store this path for future reference [for whenever the user launches the APP again].

Normally, I already know where the data and DBC will be located, and default my search to this path. I then include the path to the DBC in my SET PATH command in the main PRG of my app.

lcPath = set('path')
set path to &lcPath, &lcDBCPath, &cAppPath.\Reports, &cAppPath.\Classes
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform