Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pipe-delimited export
Message
 
 
To
11/01/2002 15:23:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00603702
Message ID:
00603713
Views:
20
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform