Following code of Visual Basic 6.0 - SP2 is giving Overflow error. Can somebody explain why?
Private Sub Form_Click()
Dim Qty as Long
Qty= 290 * 113 '' 112 is working fine
MsgBox Qty
End Sub
Following code of Visual Basic 6.0 - SP2 is giving Overflow error. Can somebody explain why?
|
|||||
|
The expression It therefore overflows upon multiplication, before the result is stored into a Explicitly type at least one of the numbers as
|
|||||||||||||
|