Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating and Macro Substitution
Message
From
10/01/2007 08:19:31
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Evaluating and Macro Substitution
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01184134
Message ID:
01184134
Views:
67
Hi all,

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
Next
Reply
Map
View

Click here to load this message in the networking platform