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



Comments

Popular posts from this blog

University of the Philippines Diliman Campus

How to change Google Chrome language from Tagalog to English

Back-sighting the history of Surveying