Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to Txt file with just a delimiter
Message
From
21/10/2014 09:28:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01609578
Message ID:
01609710
Views:
49
>Hi Doris. Thanks for your reply
>
>When I do :
>copy to MyText delimited with character '|' ........ I get each fields separated by | and DoubleQuote as in "JoeBloggs"|"Boston"|"USA"|
>
>copy to MyText delimitied with '|' ... I get each field enclosed in | | and separated by a comma as in |Joe Bloggs|,|Boston|,|USA|
>
>Still cannot get anything t produce ----> Joe Bloggs|Boston|USA| i.e. Each field separated by --> |

If you're willing to make it a two step process, use DELIMITED WITH (some character you KNOW isn't in the data) and then use STRTOFILE(STRTRAN(FILETOSTR(filename), (that character) ,'|'), filename). (Hope I got that right...)

Chris.
Previous
Reply
Map
View

Click here to load this message in the networking platform