Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array to Text File
Message
De
17/08/2006 12:15:45
 
 
À
17/08/2006 07:43:57
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:
01146435
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform