Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Overflow error for long integer
vba courses london - Overflow error for long integer
Resolved · Low Priority · Version Standard
Overflow error for long integer
The MS VB help file has an example of an overflow error, i.e.dim x as long
x = 2000 * 365
Why does this produce an overflow error when x would be 730,000, which seems to be within the range of
-2,147,483,648 and 2,147,483,647?
For upcoming training course dates see: Pricing & availability
RE: Overflow error for long integer
Hi FemiI have looked at this and even searched the net and I think there is an error on the example.
The dim should have read:
Dim X as Integer
All the examples I found used Integer, and the Help file example works perfectly using it.
Carlos
|
|
» Forum post: Project Calendar |



Course updates

