GetDirectionBit Method

Public Function GetDirectionBit(ByVal port As Long, ByVal bit As Long) As Long

Summary

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.

Parameters

  • port - Specifies the port number (0-5).

  • bit - Specifies the bit number (0-7) within the port.

Return Value

This method returns a Long. The return value is the value of the specified direction bit of the specified port.

See Also

GetDirection Method, SetDirection Method, SetDirectionBit Method