>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only