bdeGetPortLabel

Returns the label of a given port.

Syntax

label = bdeGetPortLabel(port)

Inputs

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

Outputs

label
The label of the port.
Type: string

Examples

Get the label of a given port:

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

          
            label = x1