<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Display Search Cursor Results in tkMessageBox in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151516#M11689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy, tkMessageBox&amp;nbsp; input_MEM = r"C:\test.gdb\Members" field = "MEM_ID"&amp;nbsp; valueList = [] rows = arcpy.SearchCursor(input_MEM,"\"Loc_name\" IS NULL","",field,"")&amp;nbsp; for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp; value = row.getValue(field) &amp;nbsp;&amp;nbsp;&amp;nbsp; if value not in valueSet: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valueList.append(value)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ID in valueList:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print ID&amp;nbsp; tkMessageBox.showinfo("Process Completed","Member(s) " + str(ID) + " could not be located.")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 16:14:48 GMT</pubDate>
    <dc:creator>BradShore1</dc:creator>
    <dc:date>2013-09-27T16:14:48Z</dc:date>
    <item>
      <title>Display Search Cursor Results in tkMessageBox</title>
      <link>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151516#M11689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy, tkMessageBox&amp;nbsp; input_MEM = r"C:\test.gdb\Members" field = "MEM_ID"&amp;nbsp; valueList = [] rows = arcpy.SearchCursor(input_MEM,"\"Loc_name\" IS NULL","",field,"")&amp;nbsp; for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp; value = row.getValue(field) &amp;nbsp;&amp;nbsp;&amp;nbsp; if value not in valueSet: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valueList.append(value)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ID in valueList:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print ID&amp;nbsp; tkMessageBox.showinfo("Process Completed","Member(s) " + str(ID) + " could not be located.")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 16:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151516#M11689</guid>
      <dc:creator>BradShore1</dc:creator>
      <dc:date>2013-09-27T16:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display Search Cursor Results in tkMessageBox</title>
      <link>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151517#M11690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="plain" name="code"&gt;tkMessageBox.showinfo("Process Completed","Member(s) " + ", ".join(str(ID) for ID in valueList) + " could not be located.")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 16:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151517#M11690</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2013-09-27T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Display Search Cursor Results in tkMessageBox</title>
      <link>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151518#M11691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect, thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 16:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/display-search-cursor-results-in-tkmessagebox/m-p/151518#M11691</guid>
      <dc:creator>BradShore1</dc:creator>
      <dc:date>2013-09-27T16:28:01Z</dc:date>
    </item>
  </channel>
</rss>

