CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: link list in vb

  1. #1
    Guest

    link list in vb

    i want to inpliment the linklist concept in the in the Visual Basic. how it is possible? and how can i handle it




  2. #2
    Join Date
    Jan 2000
    Location
    Nottingham, UK
    Posts
    51

    Re: link list in vb

    The easiest thing is to use a 'collection'. Although the documentation doesn't say so, it appears that 'collections' are essentially linked lists by a different name.


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: link list in vb

    there is absolutely no built-in linking mechanism in a collection.
    You'd have to build that yourself.



  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: link list in vb

    MSDN article Q166394 has a complete sample for building a linked list using Class modules.


  5. #5
    Guest

    Re: link list in vb

    thanks for the suggestion.
    but i want something else. okkkkkkkkkkkk...




  6. #6
    Guest

    Re: link list in vb

    thanks Lothar Haensler

    can u tell me about hashtable in VB
    is there any other library instade of scripting
    actually i got code in vbpj
    <vbcode>
    dim hash as HashTable
    hash.add "pramod"
    </vbcode>
    but i didnt get which reference i should add



  7. #7
    Join Date
    May 1999
    Posts
    3,332

    Re: link list in vb

    >actually i got code in vbpj

    I guess, the code for the HashTable is probably part of the article you found on VBPJ.
    Try downloading the complete article.


  8. #8
    Join Date
    Jan 2000
    Location
    Nottingham, UK
    Posts
    51

    Re: link list in vb

    I'm not sure what you mean 'no built-in linking mechanism'. A collection has mechanisms for adding new objects and for iterating through the list. Isn't this what a linked list is supposed to do?

    It's also not too hard to add facilities such as sorting and inserting by making it a class. There's excellent step-by-step documentation for this in the help.


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

Featured