Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView 'This would introduce a cycle' error gone
Message
 
 
À
09/07/2003 03:20:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00806452
Message ID:
00808476
Vues:
11
Hi Viv,

In VFP7 it's also 1426 'Member not found'. Looks like a bug to me considering that 'This would introduce a cycle' is trapable error according to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cmctl198/html/msgwindows95controlserrors.asp.

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform