Bit - property of the PmVar object
Description:
Value of one bit of the variable.
This property is obsolete, it is not functional in
JavaScript language and therefore it is recommended to replace it by calling methods:
GetBit /
SetBit.
Syntax:
Long Bit(Long nIndex)
Parameters:
nIndex | (Long) Bit index (zero-based index). |
---|
Values:
1 - bit is set
0 - bit is reset
Note:
Property access
for read and write.
The property returns the value of the
Integer type instead of
Boolean because the experience shows it more practical in this case.
Example:
VBScriptSelect and copy to clipboard
Dim oData
Set oData = pMe.Pm("/Data")
' on reading bit:
Dim nBit
nBit = oData.Item(0).Bit(1)
' on writing to bit:
oData.Item(0).Bit(1) = 1