Example

The following example shows how to connect a ZIEWin emulator session to the host.

Dim SessObj as Object
Dim autECLConnList as Object
 
Set autECLConnList = CreateObject("ZIEWin.autECLConnList")
Set SessObj = CreateObject("ZIEWin.autECLSession")
 
' Initialize the session
autECLConnList.Refresh
SessObj.SetConnectionByHandle(autECLConnList(1).Handle)
 
SessObj.StopCommunication()