Public Function InputBit(ByVal port As Long, ByVal bit As Long) As Long
This method retrieves the value of a single bit within a digital I/O port. It is provided simply for convenience, since it internally calls the InputByte Method to determine the value of the specified bit.
This method returns a Long. The return value is the current value (0 or 1) of the specified bit.