Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to command
Message
De
12/07/2002 07:36:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00677920
Message ID:
00677925
Vues:
22
>Hi All,
>
>How is it possible to copy a file with one field (character 6), to a text file to be opened in "Word" that has the exact same info, no spaces, no quotes (single or double)?
>
>creates text file with a blank character in front
>COPY TO saleco DELIMITED WITH ' ' && one space between single quotes
>
>creates a text file with single quotes in front and back
>COPY TO saleco DELIMITED WITH '' && no space()
>
>creates a text file with double quotes in front and back
>COPY TO saleco DELIMITED WITH blank
>
>Jim Harvey

There are several alternatives that give you complete control over every byte transferred, including low-level file-functions. A solution that involves relatively litte code would go something like this:
erase outputfile.txt
scan
  StrToFile(alltrim(MyField) + chr(13) + chr(10), "outputfile.txt", .T.)
endscan
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