Using the Process Analyst > Process Analyst for Developers > Automation Model > IToolbarButton.CommandID [Property][Get]

IToolbarButton.CommandId [Property][Get]

Gets the ID of the associated command for this button.

Defined As

Calling Syntax

This example assumes there is a valid ToolbarButtons collection as retrieved from an ObjectView (for example, VBA: objectView.Toolbars.Item(1).Buttons).

[VBA]

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

[Cicode]

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