Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with COPY TO command
Message
From
24/04/2001 06:03:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/04/2001 05:17:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00498895
Message ID:
00498904
Views:
14
>Hi
>
>I need to unload data from a table and it must be pipe delimited, but not with double qoutes around the character variables. I got it right to get a pipe delimited file, but do not now how to get rid of the double qoutes (" ") around the character values.
>
>Code:
>
>COPY TO c:\tmp\wtbsold.txt ;
>NOOPTIMIZE ;
>TYPE DELIMITED WITH CHARACTER "|"
>
>My end result must look like this :
>
>P|XX11|0234|WP and not "P"|"XX11"|"0234"|"WP".
>
>If there is another command that I should use, please let me know.
>
>Thank you
>
>Irene Grassow

Irene,
If added extra spaces are no problem then :
COPY TO c:\tmp\wtbsold.txt ;
TYPE DELIMITED with ' ' WITH CHARACTER "|"
If they're a problem you can remove them :
COPY TO c:\tmp\wtbsold.txt ;
TYPE DELIMITED WITH CHARACTER "|"
StrToFile(chrtran(FileToStr('c:\tmp\wtbsold.txt'),'"',''),'c:\tmp\wtbsold.txt')
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform