Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Bit - property of object Var

Description:
Value of one bit of the data item.
Syntax:
Bit(nIndex As Integer) As Integer
Calling:
when read bit:
n = oData.Item(1).Bit(index)
when write to bit:
oData.Item(1).Bit(index) = n
Parameters:
nIndex(Integer) 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 one because the experience shows it more practical in this case.
See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice