>Thanks for the excellent description.
>
>What action should be taken for the - set default to sys(5) - surely that will return exactly the same.
VFP is smart enough to recognize a SYS() function or other string expressions and implicitly use name resolution on the expression, as it would with:
CD "C:\Foo" + "\Bar\Mumble Bletch"
SYS(5) will not contain a space unless you have explicitly referenced a UNC whose UNC name (\\
server\
share name). Since VFP uses implicit name resolution IAC for this example, it doesn't matter. I'd probably use
CD (SYS(5))
to explicitly invoke name resolution rather than rely on the implied behavior, and I do not use SYS(5) IAC - I tend to use FULLPATH(CURDIR()), a more explicit statement - SYS(5) resolves to the relative path of the current default drive; so does FULLPATH(CURDIR()). Explicit name resolution avoids errors at no cost in both situations; why make the next person guess at my intent.
CD and SET DEFAULT TO are identical in this behavior. This is the stated behavior of VFP commands
which take a single name as an argument.