Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

VB6 Long variable type acting like an integer type...

$
0
0
Hi. I am beyond confused.
My application writes out to excel. To ensure having sufficient excel row count, which could be as high as 1 million rows, I had declared a variable called Row_count as long. This will give me more than 2 million rows in signed long and more than 4 million rows in unsigned long.
Upon running in debug, the VB6 application kept complaining of overflow once the Row_count had reached 65534 (an unsigned integer limit). Yet I had clearly declared it as a long. No where else in the application am I "re-declaring" it as an integer. What is going on???? Please advise. thank you. :mad::mad::mad::mad:

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>