Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to
Message
 
 
À
20/01/2010 10:06:21
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:
01444955
Vues:
62
>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) 
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform