row.set_Value(FIELD INDEX, WHAT GOES HERE?); cur.UpdateRow(row);
Dim myIntValue As Integer? = Nothing row.set_Value(FIELD INDEX, myIntValue); cur.UpdateRow(row);G
Hello,
I'm looking for some help in setting a value to <Null>. I have a field in a table of type Long and it is a coded value domain. In ArcMap I am able to assign a value of <Null> to the field and save it without error. I'd like to be able to do this programmatically.
How do I assign a <Null> to a Long data type in code?row.set_Value(FIELD INDEX, WHAT GOES HERE?); cur.UpdateRow(row);G
ICursor cur = Tab.Search(queryfilter, false); row.set_Value(FIELD INDEX, WHAT GOES HERE?); cur.UpdateRow(row);CORRECT:
ICursor cur = Tab.Update(queryfilter, false); row.set_Value(FIELD INDEX, DBNull.Value); cur.UpdateRow(row);