Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO command options
Message
From
23/01/2006 12:23:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
COPY TO command options
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01089429
Message ID:
01089429
Views:
74
Hello,

Right from the help file:
COPY TO mytxt.txt DELIMITED WITH _ WITH CHARACTER ';'
so why do I get a syntax error with:
COPY TO (tcOutputPath) DELIMITED WITH BLANK WITH CHARACTER |
Just so you don't have to look it up in the help file:

DELIMITED WITH CHARACTER Delimiter
Creates a delimited file with all fields enclosed by the character specified with Delimiter. If Delimiter is a semicolon (the character used in Visual FoxPro to indicate command line continuation), enclose the semicolon in quotation marks. You can also specify the BLANK and TAB keywords for Delimiter.
Note that the WITH Delimiter clause can be combined with the WITH CHARACTER clause. For example, the following command creates a text file with character fields enclosed by underscores and all fields delimited from each other with semicolons:

COPY TO mytxt.txt DELIMITED WITH _ WITH CHARACTER ';'
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform