16-05-2009, 03:18 PM
KruSuPhy Wrote:http://www.megaupload.com/?d=V4K3VJAK
Eh. changed it a little bit.
Fixed the Divide by zero error I'm pretty sure.
I think Type mismatch is gone, too.
I still get the divide by zero error.
Code:
Case DIVISION
If CDbl(Val(frmCalculator.txtDisplay.Text)) 0 Then
frmCalculator.txtDisplay.Text = TempValue / CDbl(Val(frmCalculator.txtDisplay.Text))
Else
'error trap method
End Ifit seems you could trap the error right in the case statement here. I looked at your code for a bit but did not see where you were trying to trap it before.
