Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to
Message
 
 
To
20/01/2010 10:06:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01444935
Message ID:
01444955
Views:
63
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform