Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way from array to csv?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01584644
Message ID:
01584648
Views:
60
Hi Gregory
Thanks for your help. Method 2 is what i was thinking about since i need to produce a string, but thought somebody may have a less tedious method :-)

>>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()
>
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform