GetBit - method of the PmVar object
Description:
Returns the bit in the value of the variable. This value must be integer (Byte, Integer, Long).
Syntax:
Long GetBit(Long nIndex)
Parameters:
nIndex | (Long) Bit index (zero-based index). |
---|
Return value:
1 - bit is set
0 - bit is reset
Note:
The property returns the value of the Long type instead of Boolean because the experience shows it more practical in this case.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oData = pMe.Pm("/Data");
var bBit = oData.Item(0).GetBit(1);
Dim oData
Set oData = pMe.Pm("/Data")
Dim bBit
bBit = oData.Item(0).GetBit(1)