bdeGetPortNumber
Returns the number of a given port.
Syntax
portNum = bdeGetPortNumber(port)
Inputs
- port
- The port to get the number of.
Outputs
- portNum
- The port number on the block of the given port.
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