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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.