Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive method?
Message
De
15/05/2003 04:40:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00787723
Message ID:
00788558
Vues:
30
This message has been marked as the solution to the initial question of the thread.
Hi,

Sorry, lazy reading...

FWIW I think you can take a simpler approach. This should be all you need:
*DragDrop
oTNode = oTargetTree.Nodes.Add;
(.DropHighlight.key,4,oSource.SelectedItem.key,oSource.SelectedItem.Text)
DO AddChildren WITH oTNode,oSource.SelectedItem.Child

PROC AddChildren
LPARAMETERS oTNode,oSNode
DO WHILE !ISNULL(oSNode)
DO AddChildren ;
(TargetTree.Nodes.Add(oTNode.Key,4,oSNode.Key,oSNode.Text),oSNode.Child)
oSNode = oSNode.Next
ENDDO
HTH
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform