J
J L
I was just playing around with error handling and put this code on a
button
Dim sng1 As Single
Try
sng1 = 1/0
MessageBox.Show(sng1.ToString)
Catch ex As Exception
MessageBox.Show(ex.Message, ex.TargetSite.Name
End Try
To my dismay, the divide by zero doe not throw an exception and the
message box displays the word Infinity...why is this? I feel really
dumb right about now...but what can I say...
TIA
John
button
Dim sng1 As Single
Try
sng1 = 1/0
MessageBox.Show(sng1.ToString)
Catch ex As Exception
MessageBox.Show(ex.Message, ex.TargetSite.Name
End Try
To my dismay, the divide by zero doe not throw an exception and the
message box displays the word Infinity...why is this? I feel really
dumb right about now...but what can I say...
TIA
John