Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access the data in case of network ?
Message
From
14/05/1997 01:40:08
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00031739
Message ID:
00032119
Views:
34
>>>
>>> >>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

All tables are in Dbc. (in fact 3 DBC). When The app starts i open each DBC on the server. When I try "USE MY TABLE" it works fine. When the form load, vfp try to open the data in the local drive.
Maybe Have I to "SET DATABASE TO .... " in the beforeopentable of the DE of my forms ?
I will try.
Thanks for your help
Michel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform