Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way from array to csv?
Message
 
To
02/10/2013 04:41:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
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:
01584658
Views:
45
>>I think method 1 will be slow, since i have to create a cursor, then create the CSV file ( that's 2 files in disk ) then filetostr() it...
>>I need fast, since this is in a web service where i have to transform the response array into a string
>
>May not be slow at all - Fox has the building of long strings optimized better than c++, IIRC. I've built rather long strings (dozens of kilobytes, sometimes perhaps a hundred or two) and it still served a page in milliseconds. May be worth a try - and the tediousness, c'mon, writing this thread already took longer than that loop :).

Dragan, thanks, and LOL about tediousness :-)
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform