<?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: name cursor is not defined in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714293#M55425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...as &lt;SPAN style="color: #ff0000;"&gt;Cursor&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs your "for row in &lt;SPAN style="color: #ff0000;"&gt;cursor&lt;/SPAN&gt;:"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 17:26:07 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2017-04-17T17:26:07Z</dc:date>
    <item>
      <title>name cursor is not defined</title>
      <link>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714292#M55424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following script is giving me an error message. Any ideas how to make it work and what questions I should I ask myself in the future to remedy the error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;fc="C:/Projects/PythonTesting/GoingPlaces.dbf"&lt;BR /&gt;with arcpy.da.SearchCursor(fc, ["STREETNAME"]) as Cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print&amp;nbsp; "STREETNAME = {0}".formate(row[0])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;File "&amp;lt;string&amp;gt;", line 7, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;NameError: name 'cursor' is not defined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714292#M55424</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2017-04-17T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: name cursor is not defined</title>
      <link>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714293#M55425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...as &lt;SPAN style="color: #ff0000;"&gt;Cursor&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs your "for row in &lt;SPAN style="color: #ff0000;"&gt;cursor&lt;/SPAN&gt;:"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714293#M55425</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-04-17T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: name cursor is not defined</title>
      <link>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714294#M55426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714294#M55426</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2017-04-17T17:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: name cursor is not defined</title>
      <link>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714295#M55427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You welcome.&amp;nbsp; Sometimes a second pair of eyes (or many in the case of geonet) helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to mark this as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/name-cursor-is-not-defined/m-p/714295#M55427</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-04-17T17:59:38Z</dc:date>
    </item>
  </channel>
</rss>

