Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way from array to csv?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01584644
Message ID:
01584650
Vues:
43
>>Hi
>>What would be the fastest way to convert a two dimensional array into a CSV string?
>>
>>Thanks
>>Jaime
>
>Two possibilities
>
>(1)
>
>Create a cursor
>insert from array
>copy to .....  type csv
>filetostring()
>
>
>
>(2)
>
>fcreate
>loop through rows
>      loop through colums
>            output field
>      endloop
>      output CRLF
>endloop
>fclose
>filetostring()
>
The first option looks like it would run a lot faster.
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform