-
Work this one out???
Can someone please explain to me why sample code 1 results in a division by zero error, and sample code 2 results in an Overflow error?
I Know that the code should result in an error, but why different errors????
Sampe Code 1
===========
Dim i As Integer
i = 1
i = i / 0
===========
Sample Code 2
===========
Dim i As Integer
i = i / 0
===========
-
well you are doing 2 different things..
in case one ..you are dividing 1/0
in case two...0/0
its just that overflow is the error caught befor edivsion by zerro...of course not sure why that would give an overflow.