以下の例は、接続名を使用して、新しく作成された autECLPS オブジェクトの接続を 設定する方法を示します。

DIM  autECLPSObj as Object
DIM  NumRows as Long
Set autECLPSObj = CreateObject("ZIEWin.autECLPS")
 
' Initialize the connection
autECLPSObj.SetConnectionByName("A")
' For example, get the number of rows in the PS
NumRows = autECLPSObj.NumRows