bdeGetPortNumber

Returns the number of a given port.

Syntax

portNum = bdeGetPortNumber(port)

Inputs

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

Outputs

portNum
The port number on the block of the given port.
Type: string

Examples

Get the port number on a block of a given port:

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

          
            portNum = 1