Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About GETFILE
Message
 
 
To
12/09/2001 10:30:54
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00555491
Message ID:
00555499
Views:
15
>HI,
>
>in my program, i use GETFILE() to get a path & file name as below:
>
>MFILE = GETFILE()
>
>** result i put "C:\MY DOCUMENT FILE\SALES DEPT\my file.txt" for MFILE
>
>copy to &MFILE && <=== error on this line
>
>** a error message will appear on screen, it looks the folder name too long.
>
>what can i do ??

Because the path contains spaces, you need to use () instead of macro substitution.

copy to (MFILE)

Or you can enclose the &MFILE in quotes so it is referenced as one entity.

copy to "&MFILE"

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform