Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETDIR()
Message
From
22/02/2001 09:55:48
 
 
To
21/02/2001 20:57:25
Garry Sankowsky
Zodiac Publications
Tolga, Australia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00478260
Message ID:
00478390
Views:
25
>I use getdir() to select a new directory.
>
>I use the following code
>
>store getdir() to newdir
>set default to &newdir

Try:

SET DEFAULT TO (newdir)

Name expansion is almost always preferable to macroexpansion where it's usable, since it is not affected by characters that might be interpreted as separators by the VFP command line parser.

>
>I find that if the directory name has a space in it an error message is produced.
>
>I tried store '"+newdir+"' to newdir1
> set default to &newdir1
>
>This did not work.
>
>Is there some soluton?
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
Reply
Map
View

Click here to load this message in the networking platform