Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to
Message
 
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:
01444961
Views:
49
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
Previous
Reply
Map
View

Click here to load this message in the networking platform