Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying to a delimited
Message
De
24/09/2001 11:34:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/09/2001 11:30:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00560023
Message ID:
00560026
Vues:
17
>I am trying to copy a table to a text file delimited with with a ~ but without the quotes.
>copy fields ... to filename delim with chara "~" gives me this:
>"123"~"charge"~"113"
>
>I need 123~charge~113
>
>Thanks for any help,
>Eric

My experience is that when the default format isn't satisfactory, you have to do some programming yourself.

You have several options here. For instance, you can:
set alternate to output.txt
set alternate on
scan
  ? "123" + "~" + "charge" + "~" + "113" && change for equivalent fields
endscan
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform