Results 1 to 4 of 4

Thread: [RESOLVED] Problem with my object model

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Resolved [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?

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Problem with my object model

    In order for anyone to be able to help, you will need to post some of your code.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem with my object model

    Quote 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.)

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    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
  •  



Click Here to Expand Forum to Full Width