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

AVEVA™ Plant SCADA

IToolbars​.Item [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the Toolbar at a supplied index location in this collection.

Defined As

  • [VBA] Item(index As Long) as Object

  • [Cicode] OBJECT Item(INT index)

  • [C++] Item(int index, IToolbar* Item)

Parameters

index

[in] Indicates the index location of the child item to return from this collection. (One based) 1 = Main toolbar; 2 = Navigation toolbar.

Execution Result

If the property get succeeds, the return value will be Success. If the index is out of range, the return value will be InvalidArgument.

Calling Syntax

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

[VBA]

Sub Example(Toolbars As Object)
Dim toolbar As Object
`Getting Property value
Set toolbar = Toolbars.Item(1)
End Sub

[Cicode]

FUNCTION Example(OBJECT hToolbars)
// Getting property value
OBJECT hToolbar = _ObjectCallMethod(hToolbars, "get_Item", 1);
END

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