Guys,
i also added SYS(5) - similar to CurDrive() - and SYS(2003). To be able to do that i modified the CurDir() and CurDrive() behaviour. The changes are only visible if the Foxpro dialect is used.
if the current dir is "c:\cavo28\bin", the results are:
Fox-dialect curdrive() shows "C:"
Fox-dialect curdir() shows "\CAVO28\BIN\"
VO-dialect curdrive() still shows "c"
VO-dialect curdir() still shows "cavo28\bin"
A root dir like "D:\" results in:
Fox-dialect curdrive() shows "D:"
Fox-dialect curdir() shows "\"
VO-dialect curdrive() still shows "D"
VO-dialect curdir() still shows ""
Before you run the attached viaef, make sure that the directories used by DirChange() exist. See: function TestDir(). When i get the time i'll have a look at the SET DEFAULT TO behaviour ...
hackfox.github.io/section4/s4g339.html
regards
Katl-Heinz