>Is there any way to change the paths of the tables in a database at runtime? Then the user can select where to have each table of the database and even change these paths dynamically.
>
>I have seen the 'path' property in DBGETPROP() and DBSETPROP() but it says that the property is Read-Only.
>
>Thanks
I don't know about each table being in a different place, but I have multiple copies of the same database (with different data) in different directories. I do in the before open tables of the data environment:
Thisform.SetAll("Database",pcDBCpath,"Cursor")
Where pcDBCpath is the path to the appropriate database direcory. You could probably set each table's path seperately if they're free tables. I don't know how you'd do it in a database. But if you set your path to all the directories that have the tables, VFP will find the table. Just make sure you don't have a different table at the path that is hardcoded.
-Michelle
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement