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

AVEVA™ Plant SCADA

CommandExecuted [Event]

  • Last UpdatedJul 18, 2023
  • 1 minute read

This event is raised when a command is executed.

Defined As

  • [VBA] CommandExecuted(commandId As String)

  • [Cicode] CommandExecuted (OBJECT processAnalyst, STRING commandId)

  • [C++] CommandExecuted (BSTR commandId)

Parameters

commandId

[in] Contains the unique identifier of the command that was executed.

processAnalyst

[in] Indicates the Process Analyst object which raised the event. (Cicode only)

Remarks

Each toolbar button is associated with a command so when they are pressed this event will be raised with the unique identifier of that command. You can then use that identifier to determine which command was executed.

By using this event you can implement your own custom commands.

Calling Syntax

Assumes you have a Process Analyst on a page with an event class defined as myPage_AN35.

[VBA]

Sub myPage_AN35_CommandExecuted(commandId As String)
End Sub
.....

[Cicode]

FUNCTION myPage_AN35_CommandExecuted(OBJECT processAnalyst, STRING commandId)
END

See Also

UpdateCommand [Event]

ICommandSystem.Execute [Method]

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