Results 1 to 2 of 2

Thread: User Types & Collections.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Question Help

    I am pretty new to this collection lark so i have a few questions.

    1. Do i have to create a class module etc to be able to use a collection. MSDN appears to suggest that you don't need a class module, but can just use collections like normal variables.

    2. Can i store a user type in a collection. I have a type which holds a Form reference and a String, and i would like to store that type in the collection.

    Those are my main questions. On top of that any advice any one can give on the general use of collections would be greatly appreciated.

    Thanks in advance.
    Iain, thats with an i by the way!

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well classcollections are just list of referings to anykinds of objects. Not any userdefined type, because they are not objects like classmodules. I have used it but i don't like it. The Vb classbuilders classcollections is much better.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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