Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Table From Array
Message
De
14/09/1999 11:25:02
 
 
À
14/09/1999 11:10:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00264400
Message ID:
00264483
Vues:
25
Yes....here's a way using low-level IO:
nFH=FCREATE("textfile.txt",0)
=FCHSIZE(nFH,0)   && Clear it out
SELECT table
SCAN
   =FPUTS(nFH,field1+CHR(9)+field2+CHR(9)) && just keep adding fields and CHR(9)
ENDSCAN
=FCLOSE(nFH)
>John:
>Now for part two. Once I create this table, I do some work on it and overwrite the text file with a COPY TO name DELIMITED WITH TAB (after making a backup of course). The help says I can stack WITH commands (i.e.; DELIMITED WITH BLANK WITH TAB) but it doesn't work. I need the resulting file to be tab delimited with no string delimiters (quotes around each field). Can you help with this?
>
>>I would generally agree, Cetin. But, sometimes, you have to use things you don't like :-)
>>>>>>THANKS!
>>>>>>Tom.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform