Example

The following example shows how to disconnect a PCOMM emulator session from the host.

Dim autECLConnList as Object
 
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
 
'Start the first session
autECLConnList.Refresh
autECLConnList(1).StartCommunication()
'
'Interact programmatically with host
'
autECLConnList.Refresh
'Stop the first session
autECLConnList(1).StopCommunication()