Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pipe-delimited export
Message
 
 
À
11/01/2002 15:23:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00603702
Message ID:
00603713
Vues:
19
Hi Dennis,

>Is it possible, via the COPY TO command, to export a table to a pipe-delimited text file that does *not* have quotes around the character fields? Some documentation indicates that it is possible. I never thought it was possible.

It's now possible in VFP 7
COPY TO mytxt.txt DELIMITED WITH "" WITH CHARACTER '|'
>However, I just discovered, much to my surprise, that the following command will import such a text file:
>
> APPEND FROM [file] DELI WITH _ WITH CHARACTER |
>
>That works contrary to my expectations. The text file that I am appending does *not* have character fields enclosed by an underscore.


It works because VFP doesn't require that field was inclosed in the specified delimiter. I think, it shoud work w/o delimiter specified
APPEND FROM [file] DELI WITH CHARACTER |
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform