Results 1 to 3 of 3

Thread: hash table for Visual Basic?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    Question

    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!



    Please Visit My WebCam!!
    http://www.hmcheung.com

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    102
    dictionary object.
    use reference to scrrun.dll (scripting).
    i believe vb dictionary is just as efficient as hash.
    itay.

  3. #3
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    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.
    Not nearly so tired now...

    Haven't been around much so be gentle...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width