Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default to...
Message
From
23/07/2001 07:32:43
 
 
To
23/07/2001 06:58:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00528803
Message ID:
00533823
Views:
10
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform