String to String Hash function In VB

  • Thread starter Thread starter Frank King
  • Start date Start date
F

Frank King

Hi,

I am looking for a hash function to map string to string
in VB. Could somebody give me some informtion?

Thank you very much.

fk
 
Frank King said:
I am looking for a hash function to map string to string
in VB. Could somebody give me some informtion?

You can use the 'String.GetHashCode' function to get a hash for a
string's. Maybe you should provide more information on what you want to
do with the hash...
 
Thank you for your post.

I have a list of string pairs. I use the first string
(in the pair) to find the second string. The second
string is in fact the value of the first string. If I use
an array, it will be very slow to find the value of a
given string. So, I am trying to use hash function to find
the value of a given string variable.
 
Frank King said:
I have a list of string pairs. I use the first string
(in the pair) to find the second string. The second
string is in fact the value of the first string. If I use
an array, it will be very slow to find the value of a
given string. So, I am trying to use hash function to find
the value of a given string variable.

Have a look at the 'Hashtable' class.
 
Thank you for the message. I realized that I forgot
to say that I am using VB 6.0. Especially I am using
VBA. Do you have an idea what I should use?

fk
 
Frank King said:
Thank you for the message. I realized that I forgot
to say that I am using VB 6.0. Especially I am using
VBA. Do you have an idea what I should use?

This is a VB.NET language group. You will more likely get an answer to your
question if you post it to one of the VB Classic groups
(microsoft.public.vb.*)
 
Back
Top