>>>we're network testing a new app. we have development copies of the data, programs, etc. locally. the dbc files hold DATA as the data directory (directly under the app). When we run the network version, the .exe finds the local data, not the network data. the config.fpw references only the network app directory, the network data directory, and c:\temp for temp files. i've done VALIDATE DATABASE on the network copy, but it still finds the local data.
>>>
>>>what am i missing?
>>
>>I had the same problem moving from local development environment to network. There 2 ways I guess:
>>1. Do something with SET PATH.
>> Or
>>2. Go to dataenvironment of each form and set explicitly Database properties in BeforeOpenTables event like:
>> This.Cursor1.Database=oSystem.datapath
>>oSystem is an application object containning various configuration settings.
>
>none of this can be hard coded... i have the path, default, temp and tempfiles set in the config.fpw...
Surely, there are different programming styles. Personally, I prefer to have Application object communicating with Config.dbf. For me it looks more OOP.
Edward Pikman
Independent Consultant