Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBC finds local copy
Message
De
02/10/1996 09:42:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00009115
Message ID:
00009121
Vues:
37
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform