hmm interesting, I'm glad you mentioned that that was bad design, I'm new at this. Maybe you, or someone else, could help me fix that.
Here's the simplified version of what i am trying to do:
I have a whole bunch of data stored in one table in a database. Each item is joined to a Group in a Groups table which stores information about the different groups of data. It gets a little tricky because each group may or may not be part of another group, so there's a self join.
I want to store each of the groups information in classes and then put all the classes in a Vector so i can easily list them, but since there can be multiple sub groups, I'm not really sure how to store it so that it is organized, and doesn't require a complex loop every time I want to display the group hierarchy (which will be on a web page).
I was thinking that I could store a group's subGroups in a vector and then add those vectors to a vector, so I would have Vector and Group objects all in the same Vector, but there must be a better way. Is there some other object I could use besides a Vector perhaps?
________________________
JoelMac
ICQ#:48144432