Hi all,
when i run this code the message "local variable 'row' referenced before assignment" appear but i think the name o the
variable and the indentation are correct.
tb = table
if tb is "RRAXERCL":
fieldsToConcat_RRAXERCL = ["CODECAVA","CODCLASS","TYPERTCR","PROFILRC","ETATRTCR"]
cursorup = arcpy.da.UpdateCursor(table,fieldsToConcat_RRAXERCL)
for row in cursorup :
row[0] = str(row[1]) + str(row[2]).rjust(2,'0') + str(row[3]).rjust(2,'0') + str(row[4]).rjust(2,'0') + str('00')
cursorup.updateRow(row)
del row
del cursorup
thank you