bdeGetPortType

Returns the type of a given port.

Syntax

portType = bdeGetPortType(port)

Inputs

port
The port to get the type of.
Type: hwdcConnectionPoint

Outputs

portType
The type of the given port.
Type: string

Examples

Get the type of a given port:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          portList = bdeGetPortsOnBlock(block);
          portX = portList{[1, 1]};
          portType = bdeGetPortType(portX);
        

          
            portType = Explicit