The SetConnectionByHandle method uses the connection handle to set the connection for a newly created autECLPageSettings object. In Z and I Emulator for Windows, this connection handle is a Long integer. 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.

Note: Do not call this method if you are using the autECLPageSettings object contained in the autECLSession object.