>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