Thanks Daniel, this looks real promising.
I have figured out how to add my key/value pairs, how to display them later
(like that was tough to figure out with the help files) and how to lookup a
given key to verify that it exists.
But to update the counter each time its found, I'm not seeing. Does the Add
method search for a dup and allow an update if it does indeed exist? I
can't seem to find an answer to this one.
Thanks again!
"Daniel Moth" <(E-Mail Removed)> wrote in message
news:uBpblj%(E-Mail Removed)...
> See if a hashtable meets your needs:
>
http://msdn.microsoft.com/library/de...classtopic.asp
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
>
> "joe" <(E-Mail Removed)> wrote in message
> news:uST$zT%(E-Mail Removed)...
> >I am trying to track counts of values - I guess an 2-dimn array would be
> >the
> > way to go?
> >
> > Basically I want a string in the first position and an integer in the
> > second:
> >
> > "This strValue", 5
> > "That strValue", 21
> > "Other strValue", 2
> > ...
> >
> > and i don't know what the values are, nor how many values there will be,
> > so
> > the array will have to grow as I process the incoming data.
> >
> > I also need to grab a value from my data stream, look it up in this
array,
> > if its there, bump the value by one - if its not here, grow the array
and
> > put a one to the value.
> >
> > I'm trying to find out if this should be done in an array, a
collection?,
> > or
> > other.
> >
> > From searching and reviewing all the sample code out there is confusing
me
> > I
> > guess.
> >
> > Any help appreciated. Thanks, joe
> >
> >
>
>