if I try to mulytiply a number with itself I git an overflow error
when resulting number is bigger then&H7FFF FFF
example:
Private Sub Command1_Click()
Dim R ( also tried Dim as Double or Long)
Dim durch2
R = &H12345678
For durch2 = 1 To 10
MsgBox Hex(R) & " " & R, vbOKOnly, " A"
R = R And &H7FFFFFFF ( avoids redult is bigger then &HFFFFFFFF)
MsgBox Hex(R) & " " & R, vbOKOnly, "B"
R = R + R ---> here overflow error
Next durch2
End Sub
does eVB is not able to to add two numbers bigger then &H40000000 ?
Werner