|
-
Aug 22nd, 2005, 12:01 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Problem with my object model
I have an object model of a collection in hierarchial format. I cannot say too much because of the sensitivity of the matter. An example, however, would be:
Items -> Item -> Characteristics -> Characteristic
the ones that end in (s) are the collections. This is made from the class builder utility with modifications to add a few functions of my own. The "Items" is multiuse and the others are all PublicNotCreatable. This was stuffed into a DLL to make them this way.
Now, my problem is that when I add an Item to Items, the Key stays unique and all characteristics that I chose at the time of "set item = items.add()" stay unique. When I add another item to items, it also stays unique. The items are displaye in a treeview and if I click on an item in the treeview, it switches to that item in the object model. the problem, is if I change any characteristics within the Item, ALL item's characteristics change. I tried it all the way up to "item.characteristics(name).value = ***" but all item's characteristics change.
I cannot make them nique no matter what I do.. Anyone run into this before?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|