IsNumeric
La funzione IsNumeric, booleana, restituisce True se il valore passatole come parametro è di tipo numerico e False se non lo è.
La sintassi è la seguente:
document.write(IsNumeric(5))Restituisce True.
document.write(IsNumeric("Luca"))
Restituisce False.La funzione "IsNumeric" viene frequentemente utilizzata per verificare che un valore sia o meno numerico, quindi eseguire routine differenti a seconda del risultato, come nell'esempio che segue:
Dim valore
valore = "Luca"
If IsNumeric(valore) = False Then
document.write("E' un numero")
Else
document.write("Non è un numero")
End If
Restituisce "Non è un numero".
');







