Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

IProcessAnalyst​.SubscribeForPropertyChange [Method]

IProcessAnalyst​.SubscribeForPropertyChange [Method]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Use this method to receive notifications of when a particular property changes. Notifications will be sent via the PropertyChanged event.

Defined As

  • [VBA] SubscribeForPropertyChange(interfaceName As String, propertyName As String)

  • [Cicode] SubscribeForPropertyChange(STRING interfaceName, STRING propertyName)

  • [C++] HRESULT SubscribeForPropertyChange(BSTR interfaceName, BSTR propertyName)

Parameters

interfaceName

[in] Specify the name of the interface that the property you want notifications for is defined on.

propertyName

[in] This is the name of the property you want to receive notifications for.

Execution Result

If the function succeeds, the return value will be Success. If the interfaceName or propertyName is a bad string, the return value will be InvalidArgument. If any other problem occurs, the return value will be GeneralFailure.

Remarks

The following set of properties are supported:

Interface name

Property Name

IProcessAnalyst

AutoScroll

IProcessAnalyst

BackgroundColor

IProcessAnalyst

ContextMenu

IProcessAnalyst

LockedPens

IProcessAnalyst

DisplayRefreshRate

IProcessAnalyst

DataRequestRate

IProcessAnalyst

ZoomMode

Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".

[VBA]

Sub Example()
myPage_AN35.SubscribeForPropertyChange "IProcessAnalyst", "ZoomMode"
End Sub

[Cicode]

Sub Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
_ObjectCallMethod(hProcessAnalyst,"SubscribeForPropertyChange",
"IProcessAnalyst", "ZoomMode");
End Sub

See Also

IProcessAnalyst.UnsubscribePropertyChange [Method]

PropertyChanged [Event]

In This Topic
TitleResults for “How to create a CRG?”Also Available in