CommStarted

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

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