Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetBit - method of object PmVar

Description:
Returns the bit in the value of the variable. The value must be integer (Byte, Integer, Long).
Syntax:
Long GetBit(Long nIndex)
Calling:
n = oData.Item(1).GetBit(index)
Parameters:
nIndex(Long) GetBit index (zero-based index).
Return Values:
1 - bit is set
0 - bit is reset
Note:
The property returns the value of the Long type instead of Boolean one because the experience shows it more practical in this case.

History:
Pm9.00.00: Created
PROMOTIC 9.0.5 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice