AnsweredAssumed Answered

Calculating Field

Question asked by MCouden on Jan 22, 2015
Latest reply on Jan 26, 2015 by xander_bakker

I have 2 fields I need to concatenate together and add zeros and a hypen.

For Example: 0001-02

In the past this code worked :

"00{0}-0{1}".format(int(!ACONTROL!)),int(!ASECTION!))

 

This time I am getting an error of :

SyntaxError: unexpected EOF while parsing(<string>, line 1)

 

My empty field I created is a text. The AControl field is a double and the ASection field is a double.

 

Why is my code not working this time? What have I changed? Please help. THanks!

Outcomes