Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView 'This would introduce a cycle' error gone
Message
De
09/07/2003 03:20:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00806452
Message ID:
00808342
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform