Results 1 to 3 of 3

Thread: Hashtable

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Posts
    97

    Hashtable

    Hello everybody:
    I have created a hashtable and storing key-value pairs

    userHolder.Add(strArry[0],realId1);
    userHolder.Add(strArry[1],realId2);
    userHolder.Add(strArry[2],realId3);

    My problem is How can I get the value of realId1 by using the key strArry[0] ?

    Pls guide...

    Kapil

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Try:
    Code:
    userHolder[strArry[0]].ToString
    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3
    Addicted Member
    Join Date
    Jun 2003
    Location
    Birmingham, AL
    Posts
    188
    Code:
    (object_type)hashtable_name.item[key_value];

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