Re: Array vs. Collection and search for value
From: Douglas Marquardt (no_spam_at_dummy.com)
Date: 06/15/04
- Next message: YYZ: "Re: Visual Safe Source"
- Previous message: Peter Young: "Re: Windows Search won't scan CLS, BAS or FRM for text?"
- In reply to: Robertico: "REQ: Array vs. Collection and search for value"
- Next in thread: Schmidt: "Re: Array vs. Collection and search for value"
- Reply: Schmidt: "Re: Array vs. Collection and search for value"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 11:44:22 -0600
Hi Robertico:
Have you considered using a recordset to store the values?
That way, you could simply apply a filter or use Find to
determine if a value exists; and sort it if need be.
If you need the values in an array, then you could use GetRows.
Of course you would have to test this for performance etc.,
but it may be another option to consider in case it works for you.
Doug.
"Robertico" <Robertico@Mymail.com> wrote in message news:rnGzc.169$%27.2512@zonnet-reader-1...
> Hi,
>
> I need some advice using an Array or a Collection.
>
> My App. reads a file with 40000 or more (hex) values (30 characters long)
> sometimes sorted and sometimes not sorted.
> After that i have to test for the appearance of an value in that list.
> Now i'am using an collection, but it's slow.
>
> What's the best to use for this, an Array or a Collection and what kind of
> search algorithm must i use.
>
> Robertico
>
>
- Next message: YYZ: "Re: Visual Safe Source"
- Previous message: Peter Young: "Re: Windows Search won't scan CLS, BAS or FRM for text?"
- In reply to: Robertico: "REQ: Array vs. Collection and search for value"
- Next in thread: Schmidt: "Re: Array vs. Collection and search for value"
- Reply: Schmidt: "Re: Array vs. Collection and search for value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|