AnsweredAssumed Answered

Search and Update Cursors

Question asked by ionarawilson on Oct 9, 2013
Latest reply on Oct 10, 2013 by ionarawilson
I need to use search and update cursors to get the values from one feature class to another. Before this code worked because I had only one record to be updated, but now I may have more than one. How can I change it to let it update many records? Thanks

    countycode = tuple(arcpy.da.SearchCursor("Countieslayer", "FIPS_TXT"))[0][0]     urows = arcpy.da.UpdateCursor("Stewardship", "County")     for urow in urows:         urow[0] = countycode         urows.updateRow(urow)