Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with SET PATH TO and my Data Environment
Message
De
24/05/2002 15:08:17
Dave Nantais
Light speed database solutions
Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00661215
Message ID:
00661222
Vues:
23
>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
Fil
Voir

Click here to load this message in the networking platform