Results 1 to 2 of 2

Thread: Set Collection.Item(4) = MyNewObject

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    1

    Question Set Collection.Item(4) = MyNewObject

    I can't make this work...

    How can I implement the member as a read-write property?

    Whenever I try to Set the Item as a new object, it says "object does not support this...".

    Has anyone done this before, and how?


    Thanks for help!

  2. #2
    jim mcnamara
    Guest
    Code:
    Dim o as Object
    Dim coll as Collection
    for x = 1 to 55 ' or however many you need
       Set o = New MyObject
       coll.Add o
    next
    Collections support add/remove, not coll.item = New Object

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