iFIX访问其它页面的控件
关于如何在调度的脚本中访问画面上的对象的属性,请参考下面脚本:
Private Sub FixTimer3_OnTimeOut(ByVal lTimerId As Long)
Dim WrkSpcApp As Object
Set WrkSpcApp = GetObject(“”, “Workspace.Application”)
‘ Get a pointer to the Variable object called Variable1 in the User globals
Dim TargetVar As Object
Set TargetVar = WrkSpcApp.Documents(“PIC1”).Page.FindObject(“TEXT1”)
MsgBox TargetVar.caption
End Sub