Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving DataBase to another Directory
Message
De
10/07/2002 17:19:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Moving DataBase to another Directory
Divers
Thread ID:
00677263
Message ID:
00677263
Vues:
57
Hi again...
When you design and create your VFP program, you set up diferent directories for all the parts of the proyect, that is for example: c:\SINFO for the main prgs, c:\SINFO\FORMS for all the forms, c:\SINFO\CLASSES for classes, and c:\SINFO\DATA for the database. When in the dessign proccess you create your forms and set its data enviroment to certain tables of the c:\SINFO\DATA\SINFO.dbc. In the main prg you open the c:\SINFO\DATA\SINFO.dbc, no problem at this time. But if for any reasson you decide to change the name of your data directory to c:\SINFO\DATADBC\SINFO.dbc so you change the Open dbc command of the main prg and it opens the right database but all the forms still trying to open its tables in the original directory. I looked at the properties window of the form´s cursors and it shows in the DataBase property the original directory and it seems to be read only. So in the future when you distribute the application it will be in all the clients desktops but the database will be in another computer (server) so the directory will be something like \\juanpc\c\SINFO\DATA\SINFO.dbc insted of C:\SINFO\DATA\SINFO.dbc
How to fix this?

Thanks Juan Uribe
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform