Results 1 to 11 of 11

Thread: Collection Missing.......

  1. #1

    Thread Starter
    Fanatic Member khalik_ash's Avatar
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    724

    Collection Missing.......

    hi

    we have collections in vb..

    VB Code:
    1. Dim Edd_col As New Collection

    but hardly i find usage of it.... and when i search i did not find much...

    i am bit is it so simple ...? is it not good to use...? it is very one are smart on this...

    Does VB.net has collection...?

  2. #2

    Thread Starter
    Fanatic Member khalik_ash's Avatar
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    724

  3. #3

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    collections you can think of as an array.. the difference being that you can easily add/remove items from it.. and when adding you can add at a specific point in the collection to retain an order...you can also associate each item in the collection with a key for easy access to each item..

  5. #5

    Thread Starter
    Fanatic Member khalik_ash's Avatar
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    724
    thanks Wokawidget & kleinma..

    u are right Wokawidget i did not find collection in .net.
    in my vb6 project i have several form where i have used collection. now when ms has removed it i was wondering is it good to use collection.

    kleinma i read the easy of collection and feel it handy to use.

    and i hardy find people talking abou it why....

  6. #6
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    The largest advantage to collections that I have found is that they can be iterated using a for each ... in ... loop.

    Arrays cannot. They require something to the effect of FOR I = LBound(theArray) to UBound(theArray)
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  7. #7
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by Lord_Rat
    The largest advantage to collections that I have found is that they can be iterated using a for each ... in ... loop.

    Arrays cannot. They require something to the effect of FOR I = LBound(theArray) to UBound(theArray)
    Another advantage is that you can retrieve an item either with its key or with its index.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  8. #8
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by khalik_ash
    thanks Wokawidget & kleinma..

    u are right Wokawidget i did not find collection in .net.
    I don't know what you mean, khalik_ash. I don't have .NET and cannot answer that, but Wokawidget said that .NET has collections.

    Originally posted by Wokawidget
    What exactally is your question?
    Hmmmmm

    .Net does have collections.
    Collections are used everywhere! They are VERY handy...
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  9. #9

    Thread Starter
    Fanatic Member khalik_ash's Avatar
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    724
    Originally posted by Mc Brain
    I don't know what you mean, khalik_ash. I don't have .NET and cannot answer that, but Wokawidget said that .NET has collections.


    sorry i missed out that... i did not check it... let me check it...
    so i need to confirm that using collection is good... than arrays

  10. #10
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Unhappy *YAWN* Need coffee!

    Arrays = Smaller resources
    Collections = More functionality

    I personally would use collections, can't stand arrays.

    The answer to your question is, YES, collections are a good thing to use...

  11. #11

    Thread Starter
    Fanatic Member khalik_ash's Avatar
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    724

    Re: *YAWN* Need coffee!

    Originally posted by Wokawidget
    Arrays = Smaller resources
    Collections = More functionality

    I personally would use collections, can't stand arrays.

    The answer to your question is, YES, collections are a good thing to use...
    thanks...Wokawidget

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