Last active
October 7, 2016 15:44
-
-
Save saviour123/5079aa801159f0e3dab006b90e0cff5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rec=0 | |
def autoIncrement(something): | |
global rec | |
pStart = 1 #adjust start value, if req'd | |
pInterval = 1 #adjust interval value, if req'd | |
if (rec == 0): | |
rec = pStart | |
else: | |
rec = rec + pInterval | |
return "P" + str(rec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check the Codeblock. Like tick it
then
place Below in the second Box.
autoIncrement( !typeFieldName! )