Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array to Text File
Message
From
17/08/2006 12:15:45
 
 
To
17/08/2006 07:43:57
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:
01146435
Views:
15
>Dear all,
>
>Could anyone suggest me a better solution to change Array Content into a text file
>
>My approach is Array -> String -> text (I think there is limitation of characters held in string)
>
>lcMemo = ''
>
>a_n = 'aLB'
>nRow = ALEN(&a_n,1)
>
>FOR x = 1 TO nRow
>	lcMemo = lcMemo + ALLTRIM(&a_n[x])+CHR(13)
>ENDFOR
>
I don't know if this is faster than any of the alternatives, but how about something like
SET ALTE TO myFile.txt
SET ALTE ON
?? aLB[1]
FOR I = 2 TO ALEN(aLB,1)
   ? aLB[I]
ENDFOR
SET ALTE TO
You might have to play with SET CONSOLE OFF/ON to supress screen printing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform