Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array to Text File
Message
De
18/08/2006 14:13:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/08/2006 01:14:44
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01146298
Message ID:
01146818
Vues:
16
>That's a very interesting suggestion... Never think about this...

There's one old thing about Set Alternate - it adds a chr(26) to the end of file when closed, at last it did last time I used that.

And this last time was in whichever version of Fox was the last one without Textmerge. Much simpler:
set textmerge on to text.txt
for i=1 to alen(aLB)
   \<<alb[i]>>
endfor
set textmerge off
set textmerge to
Another way:
lcText=""
for i=1 to alen(aLB)
   lcText=lcText+alb[i]+chr(13)
endfor
strtofile(lcText, "text.txt")
and let's not forget LLFF (low level file functions)
h=fcreate("text.txt")
for i=1 to alen(aLB)
   fputs(h, alb[i])
endfor
fclose(h)
As it was said long ago, if it can't be done three ways in VFP, it
v1) can't be done at all
v2) isn't worth doing anyway

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform