 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
xa Guest
|
Posted: Sat May 28, 2005 5:43 pm Post subject: Populating TreeView from arrays |
|
|
I have a 9000 line data file that contains a fixed size of fields in the way
of
dir_name[]dir_id[]dir_parent[]dir_type[]
i need to cycle thought this file adding the items with a dir_parent value
of 0 as the parent node and be able to use the dir_id of that parent node to
obtain the child node to add to that parent from the list that has a
dir_parent of that node until it reaches the end.. what would be the best
way to do this...
i currenlty have it in a listbox where i click on a parent and it clears
populates the listbox with the dir_names that have there dir_parent of the
item clicked..
Also the text displayed on the nodes have to be the dir_name but i need to
be able to retrieve that dir_id of that item if clicked, not sure if the
data value would suffice there..
Any help greatly appreciated..
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|