Visual Basic:
Dim ij as Integer
ij = discount.Text
If ij > 100 Then
MsgBox("Cannot be greater than 100")
discount.Text = ""
discount.Focus()
End If
In the above code if ij is 100.01 i am not getting the error message. If ij is 100.60 and above i am getting the error message. Is there any other way out?