Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Getenv() in config.fpw
Message
 
 
À
07/03/2003 13:49:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00762898
Message ID:
00762937
Vues:
11
>Does anyone know if I can use Getenv('TMPDIR') in the config.fpw
>
>ie. TMPFILES=Getenv('TMPDIR')
>I want VFP to use the local temp directory for
>PROGWORK, SORTWORK, EDITWORK,TMPFILES & RESOURCE.

Suzi,

You cannot use any VFP functions or expressions in config.fpw because it's configuration file not a program. VFP doesn't evaluate any expression on the right side of assigment. If you don't specify TMPFILES(PROGWORK, SORTWORK, EDITWORK) in the config.fpw VFP will ise value of 'TEMP' environment variable (if it exists) to set up temp. directory.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform