Update cookies preferences
Promotic

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.
See also:
- Pm.GetBit (method)
- Pm.SetBit (method)
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
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.