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

AVEVA™ Plant SCADA

ICommandSystem​.Item [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the Command 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, ICommand* Item)

Parameters

index

[in] Indicates the index location of the command to return from this collection. (One based)

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 CommandSystem object as retrieved from a Process Analyst. (for example, VBA: ProcessAnalyst.CommandSystem).

[VBA]

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

[Cicode]

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

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