<?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: Cursor Update Issue in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94042#M7343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note: indentation is correct just didn't copy correctly&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use the CODE tag (the "#" button in the editor toolbar above where you type your post) than the indentation will be preserved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Dec 2011 22:15:17 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2011-12-04T22:15:17Z</dc:date>
    <item>
      <title>Cursor Update Issue</title>
      <link>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94039#M7340</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 have created a fairly simple script to capitalize a field. The field name is "STREET". I Have tried using !STREET! or STREET but this does not work either. I get the following error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "M:\Scripts\StreetFormat.py", line 32, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = row.GetValue("STREET")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'builtin_function_or_method' object has no attribute 'GetValue'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any solutions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import arcgisscripting, sys, os
gp=arcgisscripting.create(9.3)

main = "M:\Scripts\Export_Output.shp"

cur = gp.UpdateCursor(main)
row = cur.next
while row:
&amp;nbsp;&amp;nbsp;&amp;nbsp; value = row.GetValue("STREET")
&amp;nbsp;&amp;nbsp;&amp;nbsp; valueUpper = value.upper()
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.SetValue("STREET", valueUpper)
&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.UpdateRow(row)
&amp;nbsp;&amp;nbsp;&amp;nbsp; row = cur.Next()
del cur, row&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 15:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94039#M7340</guid>
      <dc:creator>JeremyLuymes</dc:creator>
      <dc:date>2011-12-02T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor Update Issue</title>
      <link>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94040#M7341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Note: indentation is correct just didn't copy correctly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 15:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94040#M7341</guid>
      <dc:creator>JeremyLuymes</dc:creator>
      <dc:date>2011-12-02T15:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor Update Issue</title>
      <link>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94041#M7342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forgot () after row=cur.next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 15:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94041#M7342</guid>
      <dc:creator>JeremyLuymes</dc:creator>
      <dc:date>2011-12-02T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor Update Issue</title>
      <link>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94042#M7343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note: indentation is correct just didn't copy correctly&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use the CODE tag (the "#" button in the editor toolbar above where you type your post) than the indentation will be preserved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2011 22:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-update-issue/m-p/94042#M7343</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2011-12-04T22:15:17Z</dc:date>
    </item>
  </channel>
</rss>

