AnsweredAssumed Answered

Get Previous Feature Using FeatureCursor

Question asked by cdebruin on Nov 6, 2013
Latest reply on Nov 7, 2013 by cdebruin
Hello all,

What is the best practice for stepping backwards in a FeatureCursor. I use the NextFeature() method to loop through a FeatureCursor and make edits, but now I need tot be able to scroll back and forth between features in a FeatureCursor.

If there is another way, I do not need to use the FeatureCursor. I just don't know of another way.

I looked into using an enumerator, but that looks like it has the same exact problem. I see a Next() method and a Reset() method, but no Previous() method.

I feel I am missing something basic here. Right now I am requerying the database every time I want to access a 'previous' feature. I'd love to see some ArcObjects best practices here. I've searched the documentation and forums, but I was unable to find anything related.

Thank you,
Corbin de Bruin

Outcomes