|
-
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?
-
Aug 22nd, 2005, 12:21 PM
#2
Re: Problem with my object model
In order for anyone to be able to help, you will need to post some of your code.
-
Aug 22nd, 2005, 12:24 PM
#3
Re: Problem with my object model
 Originally Posted by tacoman667
I have an object model of a collection in hierarchial format. I cannot say too much because of the sensitivity of the matter.
Brucevde is right, and if you are dealing with sensitive data (and we all do at one time or another), then make up an example which mirrors the real case situation (use apples and oranges or something like that, that will permit us to take a look at what you are actually doing and how you are doing it, without seeing what you are doing it to.)
-
Aug 22nd, 2005, 01:48 PM
#4
Thread Starter
Hyperactive Member
Re: Problem with my object model
Actually, it looks as though this issue that has plagued me for a week is now resolved. The problem was that I didn't .add any characteristics at the beginning. I will explain later. Thansk for the interest though!
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
|