Results 1 to 5 of 5

Thread: mapping property that contains an array

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    6

    mapping property that contains an array

    I am having a heck of a time mapping the itemdata and list members of a standard combobox to my new and improved combobox. The control interface wizard has told me that I need to insert the code in the writeproperties to persist the array but I can not seem to figure out how to do this (I can do it fine with a property which doesn't contain an array, but I can't seem to figure out how to pass this array along in code). The wizard's sample code doesn't work either. Any help would be much appreciated. Thanks all.

    -Leon Whitcomb

  2. #2
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    Try this example. It shows you how to set properties and use the Property bag and using the writeproperties and readproperties.

  3. #3
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    Sorry i did not include the file. It's included here.
    Attached Files Attached Files

  4. #4
    New Member
    Join Date
    May 2001
    Location
    sydney australia
    Posts
    1

    Thumbs up mapping arrays to active x properties

    i to have this problem however the size of the array is dynamic in my active x.

    i have read that the collection object is good for this datatype, as the provided example is for a fixed length array, therefore allowing the user to declare a user data type.

    an example using the collection object in an active x situation would be appreciated

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    6

    how i solved this problem

    First of all thanks for your help to all who replied. I thought I would let any who were having the same problem know what I did to solve my problem. I never did figure out how to make the list or itemdata properties of the combobox persist by use of the writeproperty and readproperty procedures (because they contain arrays & I couldn't seem to map an array correctly). But fortunately the property let & the property get procedures, which were coded perfectly by the wizard did work fine. So while the user can not hard code a list into the combo box at design time as they could with a regular combobox, you can still operate on the list & itemdata properties through code because of the property let & get procedures. This works fine within my application.

    -Leon Whitcomb

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