<?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: Field Indexing, arcpy.SearchCursor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-indexing-arcpy-searchcursor/m-p/668535#M51882</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;Do not believe it is possibly with the old style search cursor. It is def possible in 10.1 with the data access module cursors. These also perform a lot faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.da.SearchCursor(FC,fields) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fields value is a python lists of fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the help for it&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10 and before you have to use row.getValue(field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000050000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000050000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 20:00:56 GMT</pubDate>
    <dc:creator>DaveBarrett</dc:creator>
    <dc:date>2013-08-28T20:00:56Z</dc:date>
    <item>
      <title>Field Indexing, arcpy.SearchCursor</title>
      <link>https://community.esri.com/t5/python-questions/field-indexing-arcpy-searchcursor/m-p/668534#M51881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the arcpy.SearchCursor function support field indexing? In the sample script below, can I sent my cursor to loop through the values in the first field by setting an index to search the first field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;for x in arcpy.SearchCursor(filepath):
&amp;nbsp;&amp;nbsp;&amp;nbsp; print x[0]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 19:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-indexing-arcpy-searchcursor/m-p/668534#M51881</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2013-08-28T19:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Field Indexing, arcpy.SearchCursor</title>
      <link>https://community.esri.com/t5/python-questions/field-indexing-arcpy-searchcursor/m-p/668535#M51882</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;Do not believe it is possibly with the old style search cursor. It is def possible in 10.1 with the data access module cursors. These also perform a lot faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.da.SearchCursor(FC,fields) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fields value is a python lists of fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the help for it&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10 and before you have to use row.getValue(field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000050000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000050000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 20:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-indexing-arcpy-searchcursor/m-p/668535#M51882</guid>
      <dc:creator>DaveBarrett</dc:creator>
      <dc:date>2013-08-28T20:00:56Z</dc:date>
    </item>
  </channel>
</rss>

