Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Makin a treeview.
Message
 
 
À
21/10/2002 15:20:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00713629
Message ID:
00713689
Vues:
16
Andrews,

Read the examples that Alex has suggested. And in my opinion, how to populate a treeview base on tables is depends on how do you have the tables layout, and how do you define the parent and children records in the tables.

But this is the basic syntax.
Thisform.objTreeview.Nodes.Clear()  && Removes all the existing nodes.
Thisform.objTreeview.Nodes.Add( , , "_Parent", "Parent")
*&
Thisform.objTreeview.Nodes.Add("_Parent", 4, "_Child1", "Child 1")
Thisform.objTreeview.Nodes.Add("_Parent", 4, "_Child2", "Child 2")
*&
Thisform.objTreeview.Nodes.Add("_Child1", 4, "_Grandchild1", "Grandchild 1")
*&
*&  Treeview looks like this:
*&   Parent
*&      Child 1
*&         Grandchild 1
*&      Child 2
*&
HTH.




>Hello at alls.
>
>I wonder to know How can I make a treview (like a windows explorer) using a data bases.
>
>If somebody has some example that can give me; it would be excellent.
>
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform