Detecting letters in a numeric field

Jay1b

Contributor
Joined
Aug 3, 2003
Messages
640
Location
Kent, Uk.
I am trying to detect any non-numeric characters in a textbox to through up an error.

Whats the best way of going about this - i do not wish to rely on error checking for this.

Thanks.
 
I always use IsNumeric() although others may say to use something else...

Visual Basic:
If Not IsNumeric(text goes here) Then

End if
 
Back
Top