Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript IsNumeric function


May 13, 2021 VBScript


Table of contents


VBScript IsNumeric function

The VBScript IsNumeric function returns the Boolean value, indicating whether the expression can be treated as a number and evaluated using that number.


VBScript IsNumeric function Complete VBScript reference manual

The IsNumeric function returns a Boolean value indicating whether the specified expression can be evaluated as a number. True is returned if the expression is evaluated as a number, otherwise False is returned.

Note: If the expression is a date, the IsNumeric function returns False.

Grammar

IsNumeric(expression)

parameter describe
expression Required.An expression.
<script type="text/vbscript">

Dim x
x=10
document.write(IsNumeric(x) & "<br />")
x=Empty
document.write(IsNumeric(x) & "<br />")
x=Null
document.write(IsNumeric(x) & "<br />")
x="10"
document.write(IsNumeric(x) & "<br />")
x="911 Help"
document.write(IsNumeric(x))

</script>

The above example output results:

True
True
False
True
False

Try it out . . .

VBScript IsNumeric function Complete VBScript reference manual