AnsweredAssumed Answered

Display Search Cursor Results in tkMessageBox

Question asked by bshore on Sep 27, 2013
Latest reply on Sep 27, 2013 by bshore
Hi,

I am trying to display results that did not match from geocoding that displays Member IDs in a tkMessageBox. The code below seems to work (the last print statement shows the expected IDs), but the tkMessageBox only displays the last value in the valueList. Any advice on how to display all of the values in the valueList in the tkMessageBox would be greatly appreciated.

Thanks,
B

import arcpy, tkMessageBox  input_MEM = r"C:\test.gdb\Members" field = "MEM_ID"  valueList = [] rows = arcpy.SearchCursor(input_MEM,"\"Loc_name\" IS NULL","",field,"")  for row in rows:     value = row.getValue(field)     if value not in valueSet:         valueList.append(value)          for ID in valueList:         print ID  tkMessageBox.showinfo("Process Completed","Member(s) " + str(ID) + " could not be located.")

Outcomes