import arcgisscripting # Create the Geoprocessor object gp = arcgisscripting.create(9.3) # Input Variables inputFC = r"C:\GIS_Work\Temp.gdb\Subs" inputField = "LinkID" cur = gp.UpdateCursor(inputFC) row = cur.Next() while row: #row.LinkID = 5 row.inputField = 6 cur.UpdateRow(row) row = cur.Next() print "Value Added" print "UpdateCursor Works"
Solved! Go to Solution.
row.setValue(inputField,6)
row.setValue(inputField,6)
What you want is this. Not sure of the exact syntax for 9.3 might be row.SetValue(...)row.setValue(inputField,6)