HackFox7 says:
"For some reason, SET("DEFAULT") has never been enhanced to keep up with the times. It still returns just the drive with no path. No extra parameters or anything to let you find the path. Of course, CURDIR() provides the path. Even better, the undocumented SET("DIRECTORY") gives you the drive and path as a single string."
On Wed, Jul 20, 2016 at 4:34 PM, Joe Yoder joe@wheypower.com wrote:
Actually I discovered that my code was disappearing after the commands were executed so I did some more Googling and found that the value to be saved is returned by CURDIR() rather than SET('DEFAULT'). It gets restored with "SET DEFAULT TO." That explains why things weren't working for me! Somehow it seems better terminology could have been chosen!
Visual FoxPro is an amalgam of dBASE, Fox, a bunch of obscure SYS() functions, and at least three different menu and screen design systems you shouldn't be using any more. There's a lot of abtuse corners to thwack your shins on.
Luckily, the language has finally stabilized, so all the inconsistencies can be documented.