AnsweredAssumed Answered

How to write down 'expression' part for "CalculateField" tool in C#?

Question asked by iaminsu12 on May 21, 2012
Latest reply on May 21, 2012 by iaminsu12
I could not figure out what an appropriate code for "calculatefield" tool. I could not understand why developers of ArcGIS did not make any useful examples for .net. It is too time consuming for just finding one little solution for one tool.

I want to copy values in field A to field B.

here is my code:

CalculateField calField = new CalculateField(selectedPoints, "id_f", "[OBJECTID]");


But it was failed. What's the exact code for expression part? How do I write down field name? I tried "\"OBEJCTID\"" but also failed.

Outcomes