There is more than one time... error help

         lb_Assistants.DeleteAllRows
        
        Dim tempDict As New Dictionary
        For each key As String in responseDictionary.keys
          tempDict = responseDictionary.Value(key)
          lb_Assistants.AddRow(tempDict.value("teacherName"))  
         //error: There is more than one item with this name and it's not clear to which this refers
         //lb_Assistants.AddRow is highlighted
          
        Next

There is not another control in the app with the name lb_Assistants. What am I missing?

Thanks

try
lb_Assistants.AddRow(tempDict.value(“teacherName”).StringValue)

Thanks. StringValue worked.

Just before you posted I got it to work by using a string variable…

      tn = tempDict.value("teacherName")
      lb_Assistants.AddRow(tn)