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

AVEVA™ Plant SCADA

IPens​.Count [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the number of Pens in this collection.

Defined As

  • [VBA] Long Count

  • [Cicode] INT Count

  • [C++] int Count

Execution Result

If the property get succeeds, the return value will be Success. If the pens collection is deleted, the return value will be GeneralFailure.

Calling Syntax

This example assumes there is a valid Pens collection object to be passed into the example methods.

[VBA]

Sub Example(Pens As Object)
Dim count As Long
`Getting Property value
count = Pens.Count
End Sub

[Cicode]

FUNCTION Example(OBJECT hPens)
// Getting property value
INT nCount = _ObjectGetProperty(hPens, "Count");
END

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