I'm making an app where the user edits the text, but I don't want them to be able to use negative numbers or anything that is NOT a number. This is the piece of code I'm having an issue with, as I'm not sure what to replace "int" with.
If (TotalPay.Text < 0 OR TotalPay.Text <> int) Then
Msgbox("Please use only positive numbers and up to one decimal.","Error!")
End If
TotalPay.Text < 0 works perfectly fine, same as everything else in my app. I only need to replace "int" with something else.
If (TotalPay.Text < 0 OR TotalPay.Text <> int) Then
Msgbox("Please use only positive numbers and up to one decimal.","Error!")
End If
TotalPay.Text < 0 works perfectly fine, same as everything else in my app. I only need to replace "int" with something else.