Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a best practice?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00925541
Message ID:
00925543
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform