CimPortList.Item (read-only property)

Gets the Port by name.
Syntax: Set CimPort = object.Item ( ProcessID )
ProcessID As String - Process ID of the port (e.g. MASTER_TCPIP0).
Description: CimPortList.Item returns a CimPort by name. Use this method to obtain a CimPort object for an existing port in the project.


Dim project As CimProject
Dim portList As CimPortList
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Set portList = project.Ports
Dim port as CimPort
set port = portList.Item("MASTER_TCPIP1)
port.ScanRate = 50
port.ScanUnit = cimTicks
portList.Save port, FALSE