ASP isNumeric Function

web

 
  Sponsored Links


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
   
 
web

ReaLife WebDesigns / 310.371.3275
We appreciate having the opportunity to contribute to the success of your business!

© 1999-2010 ReaLife WebDesigns. All rights reserved. site map | terms of use