Promotic
WikipediaLinkedInYoutubeTwitterFacebook

IsInt - method of object Pm

Description:
Testing whether the value is integer
Syntax:
IsInt(Value As Variant) As Boolean
Calling:
b = Pm.IsInt(Value)
Parameters:
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.
Note:
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), 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.
Navigation:
 
- 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