Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a best practice?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00925541
Message ID:
00925543
Vues:
27
Hi Terry,

Better is:
lcPath=SYS(16)
lcPath=IIF(RAT("\",lcPath)>0,LEFT(lcPath,RAT("\",lcPath)),lcPath)
SET PATH TO (lcPath)
But many examples for VFP don't use these tricks... :-(

MartinJ

>Or does it NOT make a difference?
>
>At the top of my Main.PRG, before READ EVENT, I issue this code:
>ucRootDirectory=SYS(5)+SYS(2003)
>ucPath=["]+ucRootDirectory+["]
>SET PATH TO (ucPath)

>
>My understanding is that a program like FileMon, would present a less clutered assessment of my VFP Install runtime.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform