Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO (FileName) DELIMITED WITH BLANK
Message
De
09/07/2001 15:34:48
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00528283
Message ID:
00528312
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Or automate with .....

COPY TO myfile.txt DELIMITED WITH BLANK
cFile=FILETOSTR("myfile.txt")
cFile=STRTRAN(cFile,'" ') && replace quote and space after with space
cFile=STRTRAN(cFile,' "') && replace quote and space before with space
=STRTOFILE(cFile,"myfile.txt",.F.)


>>The FP DOS COPY TO (FileName) DELIMITED WITH BLANK command does not put double quotes around character fields as advertised in the help file. That problem has been fixed in VFP. I am converting a program from DOS to VFP that uses the broken COPY TO command. Does anyone know how to create a COPY TO command in VFP that emulates the old DOS commnad?
>>
>>Thank you.
>
>You can create the text file in VFP with COPY TO (FileName) DELIMITED WITH BLANK, then edit the text file and remove double quotes by doing the global replace.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform