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

AVEVA™ Plant SCADA

ICursors​.Count [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Returns the number of cursors in the collection.

Defined As

  • [VBA] Integer Count()

  • [Cicode] INT Count()

  • [C++] HRESULT get_Count (long *pCount)

Execution Result

If the property get succeeds the return value will be Success. If the return variable is bad then the return value will be InvalidArgument. If the collection is deleted the return value will be GeneralFailure.

Remarks

This property may be used in conjunction with the Item property to iterate through the collection in Cicode.

Calling Syntax

This example assumes you have a valid reference to the cursors collection.

[VBA]

Sub Example(cursors As Object)
Dim cursorCount As Integer
cursorCount = cursors.Count
End Sub

[Cicode]

FUNCTION Example(OBJECT hCursors)
INT cursorCount;
cursorCount = _ObjectGetProperty(hCursors, "Count");
END

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