ASP isNumeric Function
The ASP isNumeric() function is used to check if a string contains a numeric value.
isNumeric Function Arguments
String to be tested
ASP Coding for isNumeric Function
<%
sTxtString = "How is John?"
If isNumeric(sTxtString) Then
Response.Write "Yes"
Else
Response.Write "No"
%>
Result
No
| isNumeric Functions |
Results |
|
| isNumeric(12345) |
Yes |
|
| isNumeric(12345.50) |
Yes |
|
| isNumeric(12345.5025) |
Yes |
|
| isNumeric("12345abcd") |
No |