>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