Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XFRX and location of ZLIB
Message
From
24/07/2011 06:12:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/07/2011 12:22:30
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01518769
Message ID:
01519017
Views:
92
>>Anybody run across this? Better yet, anybody found a solution?
>
>I keep all XFRX files (zlib included) in xfrx own folder as it was shipped and then use
>
>
>cXFRX_Folder='C:\wherever_XFRX_is' 
>set default to (cXFRX_Folder )
>
I somehow don't like this - if anything goes wrong, you're stuck in the wrong directory and your error handler isn't really in charge of restoring the working directory. Maybe if you used a setting object from Tom Rettig's envlib, which would restore the previous location during its .destroy()...

But then I've seen several COM objects change folder surreptitiously - like when printing (to a file?) from a browser object or some such, with unpredictable results. The app would find itself somewhere below %system% directory.

One way out of this is to make the app's set("path") out of fullpath()ed paths - so instead of
set path to mytables additive
it's
set path to fullpath("mytables") additive
which then isn't relative to your current directory, so if you (accidentally) move to another, your app still finds the files. Still not bulletproof - you may be using relative paths in your app - but may save your butt at times.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform