iFIX-访问其它页面的控件

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

发表回复

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