Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of nodes in Treeview
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00530418
Message ID:
00530426
Vues:
25
>Hello,
>
>I'm using the Treeview control (6) and I run into some problems when I need to change the order of nodes. What I'm doing now is, when the order needs to be changed, I reload the complete tree. but this can take quite some time when the number of nodes is high.
>Can I add nodes before/after a specific node?
>
>Thanks for your help in advance!

Yes, you can. The Nodes collection's Add method allows you to specify the position of a new node. You do this by specifying the Relative (in terms of its key string or index number) as the first parameter and its relationship in the second parameter. See the Treeview help on this method for further details.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform