Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Makin a treeview.
Message
From
21/10/2002 18:03:46
 
 
To
21/10/2002 15:20:32
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00713629
Message ID:
00713689
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform