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

AVEVA™ Plant SCADA

IToolbarButton​.CommandId [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the ID of the associated command for this button.

Defined As

  • [VBA] String CommandId

  • [Cicode] STRING CommandId

  • [C++] BSTR CommandId

Calling Syntax

This example assumes there is a valid ToolbarButtons collection as retrieved from an ObjectView

(for example, VBA: objectView.Toolbars.Item(1).Buttons(1).CommandID).

[VBA]

Sub Example(Button As Object)
Dim commandId As String
`Getting Property value
commandId = Buttons.CommandId
End Sub

[Cicode]

FUNCTION Example(OBJECT hButton)
// Getting property value
STRING nCommandId = _ObjectGetProperty(hButton, "CommandId");
END

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