Ready
此项会指示仿真器窗口是否已启动、已启用 API 和已连接。此属性会检查是否有所有三个属性。如果仿真器就绪,则值为 True;否则为 False。Ready 是布尔数据类型且为只读。下列示例展示了此属性。
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 A is ready.
' The results are sent to a text box called Result.
If SessObj.Ready = False Then
Result.Text = "No"
Else
Result.Text = "Yes"
End If