Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Help
Message
From
23/09/2005 00:37:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Treeview Help
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052278
Message ID:
01052278
Views:
43
Dear Experts

I want to show data in Treeview look like this

1+PAID UP CAPITAL
1- Eric den Doop
2- Cetin Basoz
2+DIRECTOR'S ACCOUNTS
1- Sergy
1- Borislav Borissov
3+RESERVES
1- Profit & Loss b/f
1- Profit & Loss last year

and for data I have following table entitled "Tree"
CREATE TABLE tree (node N(2),child n(2), detail c(50))
INSERT INTO tree (node, child, detail) VALUES (1,0,"PAIDUP CAPITAL")
INSERT INTO tree (node, child, detail) VALUES (1,1,"Eric den Doop")
INSERT INTO tree (node, child, detail) VALUES (1,2,"Cetin Basoz")
INSERT INTO tree (node, child, detail) VALUES (2,0,"DIRECTORS ACCOUNTS")
INSERT INTO tree (node, child, detail) VALUES (2,1,"Sergy")
INSERT INTO tree (node, child, detail) VALUES (2,2,"Borislav Borissov")
INSERT INTO tree (node, child, detail) VALUES (3,0,"RESERVES")
INSERT INTO tree (node, child, detail) VALUES (3,1,"Profit & Loss b/f")
INSERT INTO tree (node, child, detail) VALUES (3,2,"Profit & Loss last year")
What should be the source codes to fullfil the purpose?

Please help
Next
Reply
Map
View

Click here to load this message in the networking platform