Language Reference Guide : System Classes : IntegerObject Class : BitTest Method
 
Share this page          
BitTest Method
The BitTest method tests if a bit in the value of the IntegerObject is set.
This method has the following syntax:
integer1 = IntegerObject.BitTest(n = smallint);
This method has the following parameter:
n
(Required) Specifies the index of the bit to be tested (0 <= n <= 63). Bit indexing begins at 0, not 1. Bit 0 is the least significant bit.
The method returns a value of TRUE if the nth bit is set; it returns FALSE otherwise.