Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem of Path for View
Message
 
 
À
28/12/1999 11:49:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00307239
Message ID:
00309240
Vues:
32
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform