IsInt - method of object Pm
Testing whether the value is integer
IsInt(Value As Variant) As Boolean
|Value||(Variant) The value to be tested whether it is an integer or real number.|
true - on success. The value is an integer.
false - on error. The value is NOT integer.
does not distinguish data subtipes of numbers (Number
), 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
) 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