>>
>> >>In case of network installation, I want to put the exe in a local drive
>> and the data in a network drive.
>> >>I tried Set Default and/or Set path to tell to VFP Where are the data.
>> But when the forms are loading they try to open the data on the local
>> drive. Where Am i wrong ?
>> >>Thanks for your help
>> >>
>> >>MicheL
>> >
>> >
>> >What I did to resolve this problem is set the path of my database and
>> tables in the registry. Then I retrieve the path name when I run the EXE
>> and use that path name whenever I open the database and tables.
>>
>> I wrote the path in a ini.file and then i can retrieve the path when the
>> app starts. But Even if the path is set to network drive, when the form
>> loads she tries to acces the local drive.
>> Have i to change the DE of each forms of my app and open manually each
>> table ?
>>
>> Thanks a lot
>>
>> Michel
>
>There are 2 options :
>1. You set your DE to access tables in the Network Harddisk
>or
>2. You open the tables manually in the Init Event or Load Event of the
>form.
>
>I prefer the second option.
>
>HTH - Tony
If all your tables are in a DBC on the server, you can open the database when your application starts. Then, all your tables will be available for use. The only line of code that has to include the path where the DB is the one that opens the DB. This works wll for me.
HTH - Mark
Mark McCasland
Midlothian, TX USA