CommStarted

此项会指示与主机的连接的状态。如果主机已连接,则值为 True;否则为 False。CommStarted 是布尔数据类型且为只读。下列示例展示了此属性。

DIM  Hand as Long
DIM  SessObj as Object
 
Set SessObj = CreateObject("ZIEWin.autECLSession")
 
' Initialize the session
SessObj.SetConnectionByName("A")
 
' This code segment checks to see if communications are connected
' for session A.  The results are sent to a text box called
' CommConn.
If SessObj.CommStarted = False Then
    CommConn.Text = "No"
Else
    CommConn.Text = "Yes"
End If