Article Preview
Buy Now
COLUMN
Hierarchical Listboxes (Part 1)
Working with hierarchical listboxes
Issue: 6.1 (November/December 2007)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 19,111
Starting Page Number: 32
Article Number: 6113
Resource File(s):
6113.zip Updated: 2007-11-15 10:34:17
Related Link(s): None
Excerpt of article text...
Recently a subscriber wrote me with a question about working with hierarchical listboxes. This is an important and complicated subject that I decided would make an excellent topic for
Beginner's Corner .In a normal Listbox, the list holds the data. In a hierarchical Listbox, some of the lines are hidden (collapsed), so the Listbox can't store that information. You have to write code that is executed when the user clicks the disclosure triangle and exposes the contents of the folder. Your code needs to get that hierarchical data from somewhere and insert rows of data into the Listbox.
So the real question is:
where do you store this data? There are basically two approaches.
...End of Excerpt. Please purchase the magazine to read the full article.