Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluating and Macro Substitution
Message
 
 
À
10/01/2007 08:19:31
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01184134
Message ID:
01184137
Vues:
24
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform