General information
Category:
ActiveX controls in VFP
Title:
Treeview - trying to display contents of dbf
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only