Example

The following example shows how to use the connection handle to set the connection for a newly created autECLSession object.

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