rows = gp.UpdateCursor(inTable) row = rows.next() try: while row: for i in range(0,numSchools): school = row.GetValue(Elem) M[1] = school M.sort(lambda x, y: cmp(x[1], y[1])) M.reverse() if M[0][1] > 0: school = M[0][0] row.SetValue("[ScenarioTemplate_1011." + String + "]", school) gp.AddMessage("You made it through the if statement") rows.UpdateRow(row) row = rows.next() except: gp.AddError("Failed to set the value of new scenario field to new school assignment")
Thanks for that, I was looking where I could find docs for those methods.
They are methods of the row object:
Row—ArcGIS Pro | Documentation
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.