Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating and Macro Substitution
Message
 
 
To
10/01/2007 08:19:31
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01184134
Message ID:
01184137
Views:
23
This message has been marked as the solution to the initial question of the thread.
You have to enclose file names with spaces into double quotes. I'm not aware about any limit on the file name length though.
w_torep = [TO FILE "C:\TEST FILE.TXT" ASCII NOCONSOLE]
>
>I'm being extremely dumb today and cant work out the following:
>
>I have a report form command that we dynamically create so for instance;
>
>REPORT FORM (g_def+w_fname) &w_torep
>
>Where:
>g_def = “G:\PRODUCTS\PPWIN\DEV32\DATA\”
>w_fname = “REPORTS\R1875148”
>w_torep = “TO FILE 'C:\TEST.TXT' ASCII NOCONSOLE”
>
>This works fine but if the name of the file is more than 8 chars or has spaces it fails due to the macro substitution.
>
>So this fails:
>
>REPORT FORM (g_def+w_fname) &w_torep
>
>Where:
>g_def = “G:\PRODUCTS\PPWIN\DEV32\DATA\”
>w_fname = “REPORTS\R1875148”
>w_torep = “TO FILE 'C:\TEST FILE.TXT' ASCII NOCONSOLE”
>
>How can I change it so that it allows long file names?
>
>TIA
>
>Jon
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform