NeilOllerhead

UpdateCursor.Reset() method not working.

Discussion created by NeilOllerhead on Feb 28, 2011
Latest reply on Apr 25, 2012 by mzcoyle
I am trying to use the .Reset() method to re-iterate through a list of records in a featureclass but it isn't working.  The first loop executes perfectly but when it gets to the second loop it doesn't start...the 'row' object is 'None'. 

I have done a bunch of searches trying to see if I am calling the reset method incorrectly but it appears as everything is fine.  Any help or suggestions would be appreciated.


-----------------
rows = gp.UpdateCursor(lyrInput,'','','','FIRST_ A')
row = rows.next()

while row:
    ### do something

rows.reset()
row = rows.next()
while row:
    ### do something else

Outcomes