Promotic

IsNumeric - function of language VBScript

Description:
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.
Syntax:
Boolean IsNumeric(Variant expression)
Parameters:
expression(Variant) Any valid expression.
Return value:
true - If expression is recognized as a number
false - Otherwise (e.g. if expression is of the Date type)
Example:
VBScriptSelect and copy to clipboard

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

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