Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO command options
Message
De
23/01/2006 12:23:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
COPY TO command options
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01089429
Message ID:
01089429
Vues:
73
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/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform