Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView 'This would introduce a cycle' error gone
Message
From
09/07/2003 03:20:12
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00806452
Message ID:
00808342
Views:
13
Hi Sergey,

>>It would help if you post code that reproduces this problem.

Essentially:
oParentNode = Tree.Nodes.Add(,,"A","Parent")  && Add Top Level Node
oChildNode = Tree.Nodes.Add("A",4,"B","Child") && Add a child to it
oParentNode.Parent = oChildNode  && Error 
The OLE error in VFP6 is 1429 'This would introduce a cycle'
In VFP8 it's 1426 'Member not found'

The above is a simplistic example which could easily be trapped but the VFP6 error provided an easy way of detecting the same situation when the node being assigned as the parent node was a much more deeply nested descendant.

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform