Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Treeview - trying to display contents of dbf
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement