Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

IsNumeric

The IsNumeric function determines if the expression passed to it can be evaluated as a number either floating point or integer. The function returs True if it is a numeric-compatible type. Otherwise, it will return a value of False.

Dim fValue

fValue = 24.634
If IsNumeric(fValue) Then Response.Write fValue & " is numeric<BR>"
sValue = "25.325"
If IsNumeric(sValue) Then Response.Write sValue & " is numeric<BR>"
If IsNumeric(fValue * 26.3 / 10) Then Response.Write (fValue * 26.3 / 10) & " is numeric<BR>"


Be careful when using the IsNumeric value on an empty string. For some reason, Microsoft associates the empty string with the value zero (0) and will return True if the expression evaluates to an emtpy string.

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"In war there is no substitute for victory." - Douglas MacArthur

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.