AnsweredAssumed Answered

ArcGis 10.1 rename column sequence

Question asked by mlucchi on Nov 15, 2014
Latest reply on Nov 16, 2014 by mlucchi

Arcgis 10.1 / give a query, I order my column sequence in ascending order (eg 1-2-2.1-2.2-3-4-etc), I have to rename the same sequence (ie 1-2-3-4-5-6-7 etc.) please someone know the solution?

I tried the Autoicrement ()

     rec = 0

     final autoIncrement ():

      global rec

      PStart = 1 #adjust start value, if req'd

      pInterval = 1 #adjust interval value, if req'd

      if (rec == 0):

       rec = PStart


       rec = rec + pInterval

      return rec

It performs randomly the rename column (for example the number 1 that must be the 1 becomes 180 uses OID)

Thank you so much