Handling LISTs and QUEUEs in VB.NET 
Author Message
 Handling LISTs and QUEUEs in VB.NET

Hi Everyone,

Nowadays I am trying to implement a MM1 queue in VB.NET.
So the problem which I am facing right now is that can we
implement a LIST or a QUEUE in VB.NET. Or is there any
LIST or QUEUE class in VB.NET. I know that there is a
QUEUE class but if we create an object of this class, the
object takes only one value whereas I want to put two
values in one variable (something like a structures
consisting of two variables and a pointer to itself)

Thanks
Faisal Iradat



Mon, 12 Dec 2005 05:05:19 GMT  
 Handling LISTs and QUEUEs in VB.NET


Quote:
> Hi Everyone,

> Nowadays I am trying to implement a MM1 queue in VB.NET.
> So the problem which I am facing right now is that can we
> implement a LIST or a QUEUE in VB.NET. Or is there any
> LIST or QUEUE class in VB.NET. I know that there is a
> QUEUE class but if we create an object of this class, the
> object takes only one value whereas I want to put two
> values in one variable (something like a structures
> consisting of two variables and a pointer to itself)

> Thanks
> Faisal Iradat

I'm not sure I understand your last comment...  If you have a group of
values you want to place in a queue, just create a class and put that in the
queue?

Class Data
    public sub new()
    end sub

    Public Sub New (i As Integer, s As String)
        me.i = i
        me.s = s
    End Sub

    Public i As Integer
    Public s As String
End Class

Dim q As New Queue()

q.enqueue(new Data(10, "Hi"))
q.enqueue(new Data(5, "Bye"))

...

dim d as data = ctype(q.dequeue(), Data)
....

If this isn't what you want, maybe you could explain in a little more
detail, maybe provide some sample code...

Tom Shelton



Mon, 12 Dec 2005 05:50:11 GMT  
 Handling LISTs and QUEUEs in VB.NET

Hi,

Thanks Tom Shelton your explanation really helped me a lot.  There is
one more thing that I wanted to ask you. Is it possible to make a linked
list in VB or VB.NET

Thanks
Faisal Iradat

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  _alt.0
1K Download


Tue, 13 Dec 2005 04:10:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB.NET ODBC.NET limitations solved DSN list / Tables list

2. AS/400 Data Queue with VB.NET

3. connecting to remote private queues using vb.net

4. scheduled batch queue handle

5. How To Handle List Codes and List Text

6. VB image list handle isn't fully accessible in VC++ ActiveX thru COM call

7. Queued Components in .NET

8. Handle Selection change in Combo/List Box in VB 5.0

9. VB image list handle isn't fully accessible in VC++ ActiveX thru COM call

10. How to get a list of NT printer queues and job status

11. listing novell servers and queues

12. In this case, what's the difference between CSharp and VB.NET Exception Handling

 

 
Powered by phpBB® Forum Software