Results 1 to 2 of 2

Thread: Your guess is as good as mine

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    Two parts to my question
    1) Im trying to create a generic object which can be multiple types. This sounds like inheritence which is going to be in VB7. I was thinking of creating an class with generic properties and then a CustomProperties collection in that object so I can add values for the different types and not have heaps of properties which are only used by 1 type. That way when vb7 comes out it might make it a bit easier to migrate. Does this sounds right?

    2) Current you can only add one type of object to a collection. Any guesses as to how this will work with VB7 and inheritence? Will you be able to add objects which have inherited the interface form the main object?

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Posts
    80

    multiple interfaces?

    1) My guess is to use multiple interfaces on an object with the IMPLEMENTS keyword (they call it interface inheritance)
    With this trick you can already use some inheritance in VB.
    (I'm sorry, I just know that it's possible, not exactly how it must be programmed, just hoping to give some more ideas)

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