..


Sponsored Links

IsNumeric

The IsNumeric function, Boolean, returns true if the value passatole as a parameter is numeric and false if not.

The syntax is as follows:

 



 document.write (IsNumeric (5))

 
Returns True
 



 document.write (IsNumeric ("Luke"))

 
Returns False.

The "IsNumeric" is frequently used to verify that a value is numeric or not, then perform different routines depending on the result, as in the following:





 Dim value







 value = "Luke"







 If IsNumeric (Value) = False Then



   



 document.write ('E' number ')







 Else



   



 document.write ("Not a number")







 End If



Returns "is not a number."

In the same category ...
E-Learning
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
Visual Basic 6 (Course) Visual Basic 6 (Course)
Make Desktop Applications with VB6. From 39 €.
Sponsored Links