Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview - trying to display contents of dbf
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Treeview - trying to display contents of dbf
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01020950
Message ID:
01020950
Views:
78
New to TREEVIEW
Node_1 = THISFORM.AddNode(.NULL.)
Node_1.Text = "All Accounts"
Node_1.Expanded = .T.

The first node above shows


Code 1 Code2 Code3 Name Relationhsip

A1 John James Parent
A1 1 Sarah Johnson Child of A1
A1 1 1 Jeff Johnson Child of A1 -1
A1 1 2 Joe Johson Child of A1 -1
A1 2 Richard James Child of A1
A2 Robert Smith Parent
A2 1 Richard Smith Child of A2
A2 1 1 Carol Smith Child of A2 - 1
A2 1 2 Jess Smith Child of A2 - 1
A2 2 Phil Smith Child of A2



If I had a dbf set up with the above fields and records.

How would I set up the tree view?

OleTree.Nodes.Add(, tvwFirst, code1+code2+code3, Name, cImage1, cImage2)

The records keep comming up with exception error after 1st node called all accounts
Next
Reply
Map
View

Click here to load this message in the networking platform