Information générale
Catégorie:
Codage, syntaxe et commandes
>Hello,
>
>I assumed using a SET PATH TO command that I could make my Data Environment look for the its tables in a different directory. Am I wrong in assuming this?
>
>My program has two sub directories DATA and TUT, the standard directory is DATA and its where my main data resides. I'm trying to have my Data Environment look to the TUT directory instead using SET PATH TO TUT, I've even tried SET PATH TO CURDIR()+"\TUT" but that doesn't work either.
>
>Either I'm using the wrong command or I'm misisng something (most likely both), but can someone shed some light on this for me?
>
>Thanks,
>Bryan Smith
try
set('default')+curdir()
SET PATH TO SET('Default') + CURDIR() + "\TUT"
curdir() does not include the drive letter...
INSTEAD of using this mehod I recommend changing the database property of the cursor in the dataenvironment during the BeforeOpenTables event of the DataEnvironment.
In my extremely simple programs I have a table containing records pointing to all the databases used by the applications.
This allows one to test a .exe against both test data and production data without having to recompile the .exe
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