Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strtofile
Message
De
13/04/2010 13:35:19
 
 
À
13/04/2010 13:31:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01459983
Message ID:
01459985
Vues:
75
This message has been marked as a message which has helped to the initial question of the thread.
>I am creating a flat file (text) using strtofile. The file contains lots of quotation marks. What's the easiest way to write those to a text file using strtofile.
>
>Right now for instance I want to create a line of text that is: RUN("F");
>
>strtofile("RUN("+CHR(034)+"F"+CHR(034)+");", 'C:\TEST.TXT',1)
>
>Is there any easier way than replacing all the quotation marks with "+chr(034)+"
strtofile('RUN("F");', 'C:\TEST.TXT',1)
Often it's even better to use [] since then you can easily see when it starts and where it ends, plus you can use ' and " without worrying
strtofile([RUN("F");], [C:\TEST.TXT],1)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform