AnsweredAssumed Answered

I want to Concatenate 3 fields into a new field in a layer

Question asked by GISGURU_001 on Sep 2, 2012
Latest reply on Sep 2, 2012 by GISGURU_001
I want to Concatenate 3 fields into a new field in a layer but i keeps returning the three field names instead of the field attribute values, what im i doing wrong. Thanks

 inFeatures = "Parcels" >>> fieldname = "Name_Allottee" >>> fieldname1 = "Plot_No" >>> fieldname2 = "Block_No" >>> fieldname3 = "DDDDD" >>> sourceRows = arcpy.UpdateCursor(inFeatures)  >>> source = sourceRows.next()  >>> while source:  ...     source.setValue(fieldname3, str(fieldname) + str(fieldname1) + str(fieldname2)) ...     sourceRows.updateRow(source) ...     source = sourceRows.next() ...      >>> 

Outcomes