Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO TYPE XL5 limitation?
Message
From
26/10/2000 10:01:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/2000 09:43:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00422500
Message ID:
00434546
Views:
13
>Cetin,
>
>Thanks for you reply! I like your SaveAs() idea. It's simple and very fast! I've changed my original wrapper to use your idea. It runs almost as fast as the native COPY TO command. As far as the Excel row limitation is concerned, I don't care in my case and simply return an error code. I currently create a lot of pivot tables using automation. Should I ever run into this limitation (65K), I believe it's better to keep the data external anyway.
>

Daniel,
Glad it helped. Just an addition to code. Instead of hardcoding 65536 into code I suggest you get it from Excel (see lnMaxRows in second code sample). It might increase in Excel20xx :) Since Excel object is ready I think that portion would just get milliseconds.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform