bdeSetPortLabel

Sets the label of a port label.

Syntax

bdeSetPortLabel(port, label)

Inputs

port
The port that will have it's label set.
Type: hwdcConnectionPoint
label
The label to set for the port. Name for the port. Can be a string or a list of string.
Type: string/list

Examples

Set the label of a port:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          portList = bdeGetPortsOnBlock(block);
          portX = portList{[1, 1]};
          bdeSetPortLabel(portX, 'x1');