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

AVEVA™ Plant SCADA

IPen​.Collection [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Returns a reference to the Pens collection object that this pen belongs to.

Defined As

  • [VBA] Object Collection

  • [Cicode] OBJECT Collection

  • [C++] IPen* Collection

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. If the pen is deleted, the return value will be GeneralFailure.

Calling Syntax

Assumes you have passed a valid pen object into the function.

[VBA]

Sub Example(pen As Object)
Dim pens As Object
`Getting Property value
Set pens = pen.Collection
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
OBJECT pens;
// Getting current property value
pens = _ObjectGetProperty(hPen, "Collection");
END

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