I have two separate scripts used in Field Calculator for an "ID" attribute field. Script 1 is to create sequential numbers for the field. Script 2 is to add leading zeros to the sequential numbers.
Both scripts work independently, but is there a way to combine both scripts to run together as a single script?
Script 1 (Pre-Logic Script Code)
rec=0 def autoIncrement(): global rec pStart = 4164 #adjust start value, if req'd pInterval = 1 #adjust interval value, if req'd if (rec == 0): rec = pStart else: rec = rec + pInterval return rec
Script 1 (In smaller window)