Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a best practice?
Message
From
18/07/2004 19:27:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00925541
Message ID:
00925611
Views:
13
>A couple of points:
>
>* -- you can use SYS(16,0) so that you can get this out of your main program and still find out what you need to know
>
>* -- you can use JUSTPATH() on the results.
>
>(I'm pretty sure both these items came into the base product in VFP 7, in case backwards-compat is an issue for you.
>
>Could be earlier. I don't have VFP 6 on this machine to check. In VFP 5, JUSTPATH() was only in FOXTOOLS.)

It was in VFP6. I remember having to recompile everything when migrating from 5, because the code still tried to find these functions in Foxtools, and now they were in Fox proper.

BTW, speaking of getting the path, I've seen sys(5)+curdir(), or chopping the sys(16) so many times, and it just looks to me like too much typing :). Seems to be nobody knows about Set("directory") (or set("dire") which also works), which gives the full path, albeit without the backslash at the end. The backslash in the end is not a worry at all - forcepath(cFile, cDir) takes cDir with or without it.

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