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

徐大军

发表评论

电子邮件地址不会被公开。 必填项已用*标注