>Yes, I know that the paths in the database are relative to it, but the problem that I am trying to solve is that the user can have each table in a different path, and even change this paths dynamically. I can do this with free tables but then I cannot use features like referential integrity, triggers, and so.
VFP relies a lot on knowing where things are ... to make its database work.
As a result you are really asking for trouble.
Having said that ... if you really want to start trying to move files around dynamically ... you should have a look a what codebook did with hard coded data environments on forms.
Also take a look at the state of the dataenvironment object on a form ... during the load event ... provided that automatic loading of tables is set off - it is possible to alter directory locations of the database itself
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