Public Function GetDirection(ByVal port As Long) As Long
Summary
This method retrieves the current direction register for the specified digital I/O port.
See the SetDirection Method for further description of the
direction register.
Parameters
port - The port number (0-5).
Return Value
This method returns a Long. The return value is the port's current direction register.