Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Networking
Message
De
10/10/1999 11:15:47
 
 
À
09/10/1999 23:01:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00274666
Message ID:
00274744
Vues:
24
>Maybe it´s sounds stupid, but how can I configure
>
>my app to get data from a network-drive instead from my
>
>own hd. Ok. I know I hardcode my variables to look at
>
>lets say: g:\myapp\ and then use the database
>
>What I want is, how can I make a cfg file for different
>
>workstation, after I installed my application, I have only to edit my
>
>cfg file and point to the mapped drive I want.
>
>With thanks in advance
>
>christian

Firstly, you application should reset Database properties (dbc-ed tables) and/or CursorSource properties (free tables) of all cursors you use in Dataenvironment. Normally, it's done in DE.BeforeOpenTables event:
Thisform.SetAll("Database",oApp.dbcpathname,"Cursor") && it's simplified, works if you have only DBC-ed tables in DE
Here oApp.dbcpathname is application object property containing real (netwotk) path & file name of your DBC file. You may keep this string in local configuration table (config.dbf) and retrieve it as oApp property in Main.Prg. The application may have utility allowing user to change this string to point to correct network drive.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform