Search
FlowChart.DetectCycle Method
See Also
 



Determines whether there are any cycles containing the specified object.

 Syntax

VB6  Copy Code

Public Function DetectCycle( _
    ByVal obj As Object _
) As IArrows

C++  Copy Code

public:
IArrows* DetectCycle (
    IDispatch* obj
)

 Parameters

obj
The object whose cycles are detected.

 Return Value

A collection of Arrow objects forming a cycle.

 Remarks

Finds the cycles containing the specified object. Cycles are represented as a collection of arrows, just as paths are.  Traversing a cycle through its arrows and the object connected to them will lead to the object where traversing started. The intermediate objects can be found through the arrows' Origin and Destination properties. If there are more cycles detected, for the object passed as an argument, they are buffered. Cycles can be retrieved from the buffer using CycleCount and GetCycle.

 See Also