Is there anything in VB that is similar to the hash table in Java? I have about 10,000 key and value pairs. They're stored in a text file. How can retrieve the value of a particlar key quickly without first converting them into a database?
Thanks!
Printable View
Is there anything in VB that is similar to the hash table in Java? I have about 10,000 key and value pairs. They're stored in a text file. How can retrieve the value of a particlar key quickly without first converting them into a database?
Thanks!
dictionary object.
use reference to scrrun.dll (scripting).
i believe vb dictionary is just as efficient as hash.
itay.
If you don't want to use the Dictionary object, you could create a class that holds the values and then implement a Quick Sort or Shell Sort. There are several examples of sort routines in the thread - do a search.
Cheers,
P.