|
-
Dec 2nd, 2003, 04:18 AM
#1
Thread Starter
Hyperactive Member
Hashtable Or Collections? [Resolved...]
I am writing a function which retrieves the unique ID and the message from the Queue.
For this what can be the return type of my function?
Can it be Hashtable or Collections?
Here the order is very Important.
So can I use Hashtable? (Key will be unique ID and Vaule will be the message.) Or can I use Collections?
I don't know how to use Collections. Is it a separete datatype in Vb.NET?
And can the order will be maintained if I use collections?
Can anyone pls. explain me? Any example/sample code is welcome.
Ani
Last edited by anita2002; Dec 3rd, 2003 at 03:28 AM.
Can't imagine life without VB
(Various Boyfriends)
-
Dec 2nd, 2003, 07:36 AM
#2
You might want to look at ArrayList (or is it ListArray, can't remember).
Anyway, whichever it is, it's easy to use and will allow you to keep track of the order of the elements. It gives you the best of both worlds from Lists and Arrays (surprisingly...)
This world is not my home. I'm just passing through.
-
Dec 2nd, 2003, 08:20 AM
#3
-
Dec 3rd, 2003, 03:27 AM
#4
Thread Starter
Hyperactive Member
Thanks all.
I think ArrayList is better option.
Can't imagine life without VB
(Various Boyfriends)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|