Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for #### in Excel
Message
 
 
To
20/02/2007 07:50:24
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01197204
Message ID:
01197219
Views:
14
>Naomi
>
>Thanks for your response. However, I have tried to follow the logic but cannot.
>Also I cannot directly test it using copy-paste since I still use VFP6 which does not support TRY CATCH statements. I hope you wont mind explaining this logic line-by-line. Also what I am actually interested in is not the WIDEST entry but whether or not a numeric cell will be displayed as ###### due to less column width.
>
>Fred

For numeric columns AutoFit is usually enough. In my sample I tried to set width to 240 (looks like it's close to maximum) if the width was greater than 15 after AutoFit. I did it because I needed to put Excel into DBF and my long description fields were truncated otherwise.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform