Cannot retrieve records from Hash table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmrhema
    Contributor
    • Jan 2007
    • 375

    Cannot retrieve records from Hash table

    Hi
    I have added datas into a hash table as below

    Code:
     For I = 0 To RowCount - 1
                                            
    RegNo = (Ds.Tables("chktable").Rows(I)(0))
                        
                        
    dataTime = (Ds.Tables("chktable").Rows(I)(1))
                                          
    ht.Add(Ds.Tables("chktable").Rows(I)(0), Ds.Tables("chktable").Rows(I)(2))Id = (Ds.Tables("chktable").Rows(I)(2))
    
    'I have added only two fields the first and the last one
    Next
    Now my problem is i cannot retrieve anything
    when i put the code as
    If ht.ContainsKey( "dfd")Then
    Console.WriteLi ne("found")
    End If

    i do not get either reply or error

    Help me out
Working...