Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to Txt file with just a delimiter
Message
 
À
17/10/2014 10:49:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01609578
Message ID:
01609700
Vues:
70
Hi Tore
Yep..that seems to do it
Many thanks
regards
Gerard


>This is one of the syntaxes I always forget, so I had to give it quite a few tries before I succeeded.
>
>copy mytext.txt deli with "" with char |
>
>>Hi
>>I have a table with say Joe Bloggs, Boston,USA (3 fields)
>>I want to export as follows:
>>Joe Bloggs|Boston|USA (i.e. without blanks and a '|' as the delimiter..but cant seem to do exactly that
>>
>>If I try
>>Copy to MyText Delimited with ' ' with Character '|' (Space between the 2 single quotes)
>> It adds a Space before and after each field Joe Bloggs | Boston | USA |
>>
>>Copy to MyText Delimited with '' with Character '|' (Nothing between the 2 single quotes)
>> It adds single quotes before and after each field 'Joe Bloggs'|'Boston'|'USA'|
>>
>>Copy to MyText with Character '|'
>>....Gives a syntax error
>>
>>
>>Anybody know if I can use the Copy to to o/p fields delimited with a '|' but without blanks ??
>>
>>Tia
>>Gerard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform