Description:
Returns a Boolean value indicating whether an expression can be evaluated as a number.
In the PROMOTIC system it is better to use the Pm.GetVarType method (or Pm.IsInt, Pm.ToNumber).
Syntax:
Boolean IsNumeric(Variant expression)
Parameters:
expression | (Variant) Any valid expression. |
---|
Return values:
true - If expression is recognized as a number
false - Otherwise (returns false if expression is of the Date type)
Example:
VBScriptSelect and copy to clipboard
Dim Var, bCheck
Var = 53
bCheck = IsNumeric(Var) 'Returns true
Var = "459.95"
bCheck = IsNumeric(Var) 'Returns true
Var = "45 Help"
bCheck = IsNumeric(Var) 'Returns false