alexarnal

Populate a field with Python in the field calculator using a list.

Discussion created by alexarnal on May 9, 2013
Latest reply on May 10, 2013 by alexarnal
Dear all,

I would like to create a modification of this code:

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

Because I need to populate the elements= 0 with the numbers of a list. Could you help me?

Thank you in advance for your collaboration.

Regards

Outcomes