AnsweredAssumed Answered

UpdateCursor setValue() equivalent for da.UpdateCursor?

Question asked by katiekat466 on Sep 30, 2015
Latest reply on Sep 30, 2015 by katiekat466

Can I rewrite the Python code below using da.UpdateCursor ?  I could not find an equivalent setValue() method for da.UpdateCursor to make the changes.


i = 0
fields= ['LastName','FirstName']
values= ['Jensen','Parky']


rows = arcpy.UpdateCursor(table, where)
for row in rows:
while (i < len(fields)):
       row.setValue(fields[i], values[i])    
       i += 1


del rows, row

Are there any arcpy methods to return the index of tableName.fieldName that we can plug into row[index] when using da.UpdateCursor?