Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01444935
Message ID:
01444961
Vues:
48
What do we want to get by all these strange manipulations? The header info?

>>Sergey you are right, but i never know if there will be any ',' in the file or not
>
>Try
>
>lcFileName = "Whatever.txt"
>lcTempFileName = FORCEEXT(lcFileName, "TMP")
>COPY TO (lcFileName) TYPE CSV FOR .F.
>CSTRTOFILE(STRTRAN(FILETOSTR(lcFileName), [,], [;]), lcFileName)
>COPY TO (lcTempFileName) DELIMITED WITH ';"
>STRTOFILE(FILETOSTR(lcTempFileName), lcFileName, .T.)
>
>ERASE (lcTempFileName) 
>
>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform