Skip to Content
0
Former Member
Feb 16, 2009 at 06:52 AM

string Contains only digits

31162 Views

Hi Guys,

I have a string = 8425-67123

I need to put a validation which says " enter only digits " if anything other than a digit is entered.

How do i check if anything other than a digit is entered ( in the above case " - " should not be allowed ).

Thanks and regards,

Frank