Using the Process Analyst > Process Analyst for Developers > Automation Model > ICursors.Count [Property][Get]

ICursors.Count [Property][Get]

Returns the number of cursors in the collection.

Defined As

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.


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.


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


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