IsInt - method of object Pm

Testing whether the value is integer
IsInt(Value As Variant) As Boolean
b = Pm.IsInt(Value)
Value(Variant) The value to be tested whether it is an integer or real number.
Return Values:
true - on success. The value is an integer.
false - on error. The value is NOT integer.
Caution! Testing whether the current value in the variable is an integer. The data type of the variable is not tested. JavaScript does not distinguish data subtipes of numbers (Number) (see Data types JavaScript), but VBScript and PROMOTIC objects return variables of certain data subtype (see Data types VBScript). If an integer number value is present in the variable of a real number subtype (Single, Double), then this method evalueates this value as whole number.

The Pm.GetVarType method can be used to test the variable for its data type. For numeric values the method returns only a flag that it is a number. The Pm.IsInt method can then be used in order to detect whether it is an integer or real number.

The method can also be called in the graphic item events for Web panels. The method is functional also in Macro expression $.expr and in the onDraw event of the PmiCanvas graphic item.
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- IsInt
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice