Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Additional path doesnt stick
Message
From
05/05/2000 05:47:08
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00355654
Message ID:
00366468
Views:
14
>Roxanne,
>
>>We added the additional subdirectories to the SET PATH statement in StartMM() thinking the DEVPATH constant in the framework's setup.prg would carry them through to my runtime environment but it's not happening. I also tried adding the additional subdirs to the standard path in main.prg right after the call to the framework's setup.prg and still nada, just doesnt seem to stick. So to fudge it, we add to the SET PATH list right before we need to grab something from new directories, but still gotta code the first USE cmd with LOCFILE() just to get the data loading kicked off gracefully.
>
>The trouble with SET PATH command doesn't work the way SET RELATION blah..blah ADDITIVE do. Only the current SET PATH will be recognized by the application.
>
*  Append new path to the end of the current path
lcCurPath = SET('PATH')
if ! EMPTY(lcCurPath)
   lcCurPath = lcCurPath + ';'
ENDIF
lcCurPath = lcCurPath + <i>whatever</i>
SET PATH TO &lcCurPath
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform