Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO command options
Message
 
 
À
23/01/2006 12:23:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01089429
Message ID:
01089446
Vues:
16
The 'BLANK' option can only be used as a field separator. If you want to surround fields with spaces
COPY TO (tcOutputPath) DELIMITED WITH " " WITH CHARACTER |
>
>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 ';'
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform