Handle

This is the handle of the connection for which the autECLSession object was set. There can be only one Z and I Emulator for Windows connection open with a given handle. For example, there can be only one connection “A” open at a time. Handle is a Long data type and is read-only. The following example shows this property.

DIM  SessObj as Object
Set SessObj = CreateObject("ZIEWin.autECLSession")
 
' Initialize the session
SessObj.SetConnectionByName("A")
 
' Save the session handle
Hand = SessObj.Handle