Thanks rlc, that's exactly what I was looking for
: Simple way to check for a number....
:
:
: If Not IsNumeric(txtInput.Text) Then
: 'it is not a number
: variable = .....
: End if
:
: If you want something more complex that can account for specific special characters and such, you need to learn how to write a Regular Expression, google it and you will find plenty of examples.
:
:
: ~rlc
:
:
:
:
: : :
This message was edited by 5thshadow at 2005-10-19 6:52:55
: : : How would I do the opposite of 'variable = CInt(Val(txtInput.Text))', like if you enter a number it would return a value of 0
: : :
: :
: : What do you mean?
: : Please give more details.
: :
: