<?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 Re: Version 10.0 search cursor not resetting? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/version-10-0-search-cursor-not-resetting/m-p/55815#M1905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All you did wrong was expect reset() to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact it does not work, at least not on a feature table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This fact is mentioned somewhere in the help files, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but only in passing, and not at all on most of the cursor pages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(and I couldn't find it myself, when I looked just now)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the Cursor page, for example, under Methods, reset() is only a heading;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it has no little explanation table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to start at the top again, you have to start a new cursor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2012 11:34:49 GMT</pubDate>
    <dc:creator>markdenil</dc:creator>
    <dc:date>2012-07-17T11:34:49Z</dc:date>
    <item>
      <title>Version 10.0 search cursor not resetting?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/version-10-0-search-cursor-not-resetting/m-p/55814#M1904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Running in 10.0. Was trying to reset a search cursor in some code, and it didn't work. Tried this little snippet, and it didn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;cur = arcpy.SearchCursor("c1") row = cur.next() while row:&amp;nbsp; print row.getValue("FID")&amp;nbsp; row = cur.next() cur.reset() row = cur.next() print row.getValue("FID")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The last print statement returns an error, saying the row is NoneType object. I was expecting the cursor to reset and respond to next. What did I do wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 19:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/version-10-0-search-cursor-not-resetting/m-p/55814#M1904</guid>
      <dc:creator>HarryBowman</dc:creator>
      <dc:date>2012-07-16T19:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Version 10.0 search cursor not resetting?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/version-10-0-search-cursor-not-resetting/m-p/55815#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All you did wrong was expect reset() to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact it does not work, at least not on a feature table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This fact is mentioned somewhere in the help files, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but only in passing, and not at all on most of the cursor pages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(and I couldn't find it myself, when I looked just now)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the Cursor page, for example, under Methods, reset() is only a heading;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it has no little explanation table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to start at the top again, you have to start a new cursor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 11:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/version-10-0-search-cursor-not-resetting/m-p/55815#M1905</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-07-17T11:34:49Z</dc:date>
    </item>
  </channel>
</rss>

