Home All Groups Group Topic Archive Search About
Author
1 May 2006 8:00 PM
Cheryl
Does a VB.NET collection class exist that is:

1.  Two-dimensional
2.  FIFO (first in, first out)

Thank you!

- Cheryl

Author
1 May 2006 8:09 PM
Herfried K. Wagner [MVP]
"Cheryl" <cheryl.gilb***@impaccompanies.com> schrieb:
> Does a VB.NET collection class exist that is:
>
> 1.  Two-dimensional
> 2.  FIFO (first in, first out)

I suggest to check out the classes and namespaces in the
'System.Collections' namespace.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 May 2006 8:25 PM
Cheryl
I've been trying this, but I haven't found what I need.

- Cheryl

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23c9oZsVbGHA.1264@TK2MSFTNGP05.phx.gbl...
> "Cheryl" <cheryl.gilb***@impaccompanies.com> schrieb:
> > Does a VB.NET collection class exist that is:
> >
> > 1.  Two-dimensional
> > 2.  FIFO (first in, first out)
>
> I suggest to check out the classes and namespaces in the
> 'System.Collections' namespace.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
Author
1 May 2006 8:38 PM
Herfried K. Wagner [MVP]
"Cheryl" <cheryl.gilb***@impaccompanies.com> schrieb:
> I've been trying this, but I haven't found what I need.

What about the 'Queue' class?

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 May 2006 9:00 PM
Cheryl
I think the Queue class is only one-dimentional

- Cheryl

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uC2I98VbGHA.1324@TK2MSFTNGP04.phx.gbl...
> "Cheryl" <cheryl.gilb***@impaccompanies.com> schrieb:
> > I've been trying this, but I haven't found what I need.
>
> What about the 'Queue' class?
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
Author
1 May 2006 10:25 PM
Herfried K. Wagner [MVP]
"Cheryl" <cheryl.gilb***@impaccompanies.com> schrieb:
>I think the Queue class is only one-dimentional

Mhm...  What would a two-dimensional queue look like?

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
2 May 2006 2:28 AM
Jay B. Harlow [MVP - Outlook]
Cheryl,
How about a one-dimensional array in a Queue?

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


Show quoteHide quote
"Cheryl" <cheryl.gilb***@impaccompanies.com> wrote in message
news:%23UAmKJWbGHA.1204@TK2MSFTNGP02.phx.gbl...
|I think the Queue class is only one-dimentional
|
| - Cheryl
|
| "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
| news:uC2I98VbGHA.1324@TK2MSFTNGP04.phx.gbl...
| > "Cheryl" <cheryl.gilb***@impaccompanies.com> schrieb:
| > > I've been trying this, but I haven't found what I need.
| >
| > What about the 'Queue' class?
| >
| > --
| >  M S   Herfried K. Wagner
| > M V P  <URL:http://dotnet.mvps.org/>
| >  V B   <URL:http://classicvb.org/petition/>
|
|
Author
1 May 2006 8:42 PM
Göran_Andersson
1. Collections are not two dimensional. You have to explain in what
respect you need it to have two dimensions to be able to help you.

2. System.Collections.Queue.

Cheryl wrote:
Show quoteHide quote
> Does a VB.NET collection class exist that is:
>
> 1.  Two-dimensional
> 2.  FIFO (first in, first out)
>
> Thank you!
>
> - Cheryl
>
>
Author
1 May 2006 9:00 PM
Cheryl
A key and and a value - both strings

- Cheryl

Show quoteHide quote
"Göran Andersson" <gu***@guffa.com> wrote in message
news:evpVB$VbGHA.3692@TK2MSFTNGP05.phx.gbl...
> 1. Collections are not two dimensional. You have to explain in what
> respect you need it to have two dimensions to be able to help you.
>
> 2. System.Collections.Queue.
>
> Cheryl wrote:
> > Does a VB.NET collection class exist that is:
> >
> > 1.  Two-dimensional
> > 2.  FIFO (first in, first out)
> >
> > Thank you!
> >
> > - Cheryl
> >
> >
Author
1 May 2006 9:11 PM
Cor Ligthert [MVP]
Cheryl,

Can not be a problem it holds object, therefore you can make your own class.

Although a it is not a dictionary, simple because of the fact that a
dictionary is not FIFO

I hope this helps,

Cor

Show quoteHide quote
"Cheryl" <cheryl.gilb***@impaccompanies.com> schreef in bericht
news:O4hSaJWbGHA.1272@TK2MSFTNGP03.phx.gbl...
>A key and and a value - both strings
>
> - Cheryl
>
> "Göran Andersson" <gu***@guffa.com> wrote in message
> news:evpVB$VbGHA.3692@TK2MSFTNGP05.phx.gbl...
>> 1. Collections are not two dimensional. You have to explain in what
>> respect you need it to have two dimensions to be able to help you.
>>
>> 2. System.Collections.Queue.
>>
>> Cheryl wrote:
>> > Does a VB.NET collection class exist that is:
>> >
>> > 1.  Two-dimensional
>> > 2.  FIFO (first in, first out)
>> >
>> > Thank you!
>> >
>> > - Cheryl
>> >
>> >
>
>
Author
1 May 2006 9:29 PM
Cheryl
It looks like making my own class would be my only option.

Thank you!

- Cheryl
Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:OfO6KOWbGHA.3344@TK2MSFTNGP03.phx.gbl...
> Cheryl,
>
> Can not be a problem it holds object, therefore you can make your own
class.
>
> Although a it is not a dictionary, simple because of the fact that a
> dictionary is not FIFO
>
> I hope this helps,
>
> Cor
>
> "Cheryl" <cheryl.gilb***@impaccompanies.com> schreef in bericht
> news:O4hSaJWbGHA.1272@TK2MSFTNGP03.phx.gbl...
> >A key and and a value - both strings
> >
> > - Cheryl
> >
> > "Göran Andersson" <gu***@guffa.com> wrote in message
> > news:evpVB$VbGHA.3692@TK2MSFTNGP05.phx.gbl...
> >> 1. Collections are not two dimensional. You have to explain in what
> >> respect you need it to have two dimensions to be able to help you.
> >>
> >> 2. System.Collections.Queue.
> >>
> >> Cheryl wrote:
> >> > Does a VB.NET collection class exist that is:
> >> >
> >> > 1.  Two-dimensional
> >> > 2.  FIFO (first in, first out)
> >> >
> >> > Thank you!
> >> >
> >> > - Cheryl
> >> >
> >> >
> >
> >
>
>
Author
2 May 2006 12:08 AM
Dennis
Not sure what you want exactly but maybe this simplistic example will work:

Private Structure myStructure
    Dim Key as string
    Dim Value as string
End Structure

Use that structure to hold your key-value pairs and then a Que or Stack to
hold myStructures.  Should be easy to "roll" your own FIFO using this concept.
--
Dennis in Houston


Show quoteHide quote
"Cheryl" wrote:

> It looks like making my own class would be my only option.
>
> Thank you!
>
> - Cheryl
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:OfO6KOWbGHA.3344@TK2MSFTNGP03.phx.gbl...
> > Cheryl,
> >
> > Can not be a problem it holds object, therefore you can make your own
> class.
> >
> > Although a it is not a dictionary, simple because of the fact that a
> > dictionary is not FIFO
> >
> > I hope this helps,
> >
> > Cor
> >
> > "Cheryl" <cheryl.gilb***@impaccompanies.com> schreef in bericht
> > news:O4hSaJWbGHA.1272@TK2MSFTNGP03.phx.gbl...
> > >A key and and a value - both strings
> > >
> > > - Cheryl
> > >
> > > "Göran Andersson" <gu***@guffa.com> wrote in message
> > > news:evpVB$VbGHA.3692@TK2MSFTNGP05.phx.gbl...
> > >> 1. Collections are not two dimensional. You have to explain in what
> > >> respect you need it to have two dimensions to be able to help you.
> > >>
> > >> 2. System.Collections.Queue.
> > >>
> > >> Cheryl wrote:
> > >> > Does a VB.NET collection class exist that is:
> > >> >
> > >> > 1.  Two-dimensional
> > >> > 2.  FIFO (first in, first out)
> > >> >
> > >> > Thank you!
> > >> >
> > >> > - Cheryl
> > >> >
> > >> >
> > >
> > >
> >
> >
>
>
>
Author
1 May 2006 10:33 PM
Göran_Andersson
You mean that you want a queue where each item has a key and a value?
Not really two dimensional, but rather a double one dimensional list?

If you use framework 2.0 you can use generics to make typed lists. I
believe that you could make a queue that holds KeyValuePair-elements:

Queue<KeyValuePair<string,string>>

Cheryl wrote:
Show quoteHide quote
> A key and and a value - both strings
>
> - Cheryl
>
> "Göran Andersson" <gu***@guffa.com> wrote in message
> news:evpVB$VbGHA.3692@TK2MSFTNGP05.phx.gbl...
>> 1. Collections are not two dimensional. You have to explain in what
>> respect you need it to have two dimensions to be able to help you.
>>
>> 2. System.Collections.Queue.
>>
>> Cheryl wrote:
>>> Does a VB.NET collection class exist that is:
>>>
>>> 1.  Two-dimensional
>>> 2.  FIFO (first in, first out)
>>>
>>> Thank you!
>>>
>>> - Cheryl
>>>
>>>
>
>
Author
1 May 2006 8:48 PM
Cor Ligthert [MVP]