IsNumeric - function of language VBScript

Returns a Boolean value - specifies whether an expression can be evaluated as a number.
In the PROMOTIC system it is better to use Pm.IsValid(Pm.ToNumber(expression))
or Pm.GetVarType, Pm.IsInt, etc.
Boolean IsNumeric(Variant expression)
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)
VBScriptSelect and copy to clipboard

Dim Val, bCheck
Val = 53
bCheck = IsNumeric(Val)   ' Returns true
Val = "459.95"
bCheck = IsNumeric(Val)   ' Returns true
Val = "45 Help"
bCheck = IsNumeric(Val)   ' Returns false
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.