Public Function GetDirectionBit(ByVal port As Long, ByVal bit As Long) As Long
This method retrieves the value of a single bit of a port's direction register. It is provided simply for convenience, since it internally calls the GetDirection Method to determine the value of the specified bit.
port - Specifies the port number (0-5).
bit - Specifies the bit number (0-7) within the port.
This method returns a Long. The return value is the value of the specified direction bit of the specified port.