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

AVEVA™ Plant SCADA

IObjectView​.SelectedItem [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the current primary selection in the ObjectView. This is the pen item that was last selected.

Defined As

  • [VBA] Object SelectedItem

  • [Cicode] OBJECT SelectedItem

  • [C++] IObjectViewItem* SelectedItem

Execution Result

If the property get succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument.

Calling Syntax

This example assumes that there is an IObjectView object being passed in as a parameter.

[VBA]

Sub Example(objectView As Object)
Dim selectedItem As Object
`Getting Property value
Set selectedItem = objectView.SelectedItem
End Sub

[Cicode]

FUNCTION Example(OBJECT hObjectView)
// Getting property value
OBJECT hSelectedItem = _ObjectGetProperty(hObjectView, "SelectedItem");
END

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