Re: Collection Capabilities

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Brian" <bkstigler@xxxxxxx> schrieb im Newsbeitrag
news:eERr%23slkHHA.1624@xxxxxxxxxxxxxxxxxxxxxxx

Thanks for the suggestions and sorry for the vague posting.
The data and properties are all string values. I just wanted
a simpler way to sort and process the sets.
Ok, thought your items were Objects.
Regarding the SortedDictionary-Example you'd have
to change only the Add from:
Key = Obj.Prop1 & "|" & Obj.Prop2
Dic.Add Key, Obj
to:
Key = Obj.Prop1 & "|" & Obj.Prop2
Dic.Add Key, Obj.StringData
....or where ever your Prop- or Content-Data comes from.

The Filter-Function could remain the same.

My data is really like a recordset but is currently
stored in a couple collection objects.
ADO allows you, to create Recordsets without being
connected to a Database and fill them with your Data.

If I could host the data in a database... my life would
be a lot easier (but I don't have that option right now).
What is the background for this?
Do you have to avoid disk-access?

So instead,
I just iterate through the collections to find the matching sets.
So I was really looking for something like the Recordset idea
as applied to a collection... (I'll look into that Olaf...)
Just let me know, if you have any questions about the Dictionary.

Olaf


.



Relevant Pages

  • Re: VB6 LISTBOX problem
    ... Have a look at the code below, can you do a sort that is faster ... There are of course all sorts of ways of sorting stuff, especially stuf that is "linked together" as in your UDTs, but to prove the following code sorts it in exactly the same way that your own original code does so, by concatenating all three items of each element into a composite string exactly as you are already doing, but instead of dumping those composite strings into a ListBox it dumps them into a VB string array. ... Private Type SAFEARRAY1D ... Dim StPtr As Long, VAs String, pVAs Long ...
    (microsoft.public.vb.general.discussion)
  • Re: Trying to create dynamic VBA code (or wasting my time?)
    ... how to manipulate recordsets, having done so before. ... possible to have a string variable that contains a string of what is ... actually a valid VBA statement, and then somehow to run the VBA code ... Dim stringBuff As String ...
    (microsoft.public.access.modulesdaovba)
  • C Sharp sorting considered superior to C by an order of magnitude
    ... following sort algorithms and the following points. ... its own comparision for the types bool, byte, short, int, long, ... single, double and string. ... private CheckBox CHKdeterminism; ...
    (comp.programming)
  • Re: Cant Figure Out How To Sort On Bind
    ... The sort order is not being passed as an argument, ... with the string "searchCache" to create a key for it, ... 'Assign ColumnOrder to ViewState ... Sub GetDataReader(ByVal ColumnOrder As String) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Chris Rockliffes Hofner.
    ... It looks disgusting - the original finish was a sort of pewkey ... pickups with one of those steel wire wool pan scrubbers - there was no ... strings in you have to push the trem fixture forward, ... Peter Green-ish tone. ...
    (rec.music.makers.guitar.acoustic)