12.02.2013

Creating a new field with attributes incrementing by 1


pre-logic script code:

rec=0
def autoIncrement( ):
 global rec
 pStart = 1 
 pInterval = 1 
 if (rec == 0): 
  rec = pStart 
 else: 
  rec = rec + pInterval 
 return rec



No comments:

Post a Comment