Syntax
Public Function IsNumericValue(vVal As Variant) As Boolean
Description
This function is used to return a boolean value indicating whether an expression can be evaluated as a number.
Parameters
Key | Description |
vVal | An expression of type variant to be indicated if is number or not. |
Return value
Returns true if the expression value is of numeric type.
Sample
Public Sub main()AlertMessage IsNumericValue(5452) 'Returns true.AlertMessage IsNumericValue("not numeric") 'Returns false.End Sub
See Also