>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.