Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array to Text File
Message
From
18/08/2006 14:13:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/08/2006 01:14:44
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01146298
Message ID:
01146818
Views:
15
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform