Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with COPY TO command
Message
De
24/04/2001 06:03:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/04/2001 05:17:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00498895
Message ID:
00498904
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform