i want to inpliment the linklist concept in the in the Visual Basic. how it is possible? and how can i handle it
Printable View
i want to inpliment the linklist concept in the in the Visual Basic. how it is possible? and how can i handle it
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.
there is absolutely no built-in linking mechanism in a collection.
You'd have to build that yourself.
MSDN article Q166394 has a complete sample for building a linked list using Class modules.
thanks for the suggestion.
but i want something else. okkkkkkkkkkkk...
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
>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.
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.