- #1
dt19
- 47
- 0
i'm writing a really simple quadratic equation solver. the code below is to display a messgae if the user inputs something that is not a number into a text input box for one of the coefficients. it worked on VB 6.0 so why won't it work for VB express edition?
txt_x2 is the input box
Private Sub txt_x2_LostFocus()
If IsNumeric(txt_x2.Text) = False Then
MsgBox("Enter a number!", vbOKOnly, "Message")
End If
End Sub
txt_x2 is the input box
Private Sub txt_x2_LostFocus()
If IsNumeric(txt_x2.Text) = False Then
MsgBox("Enter a number!", vbOKOnly, "Message")
End If
End Sub