belowzero8

ICursor.set_Value NotImplementedException?

Discussion created by belowzero8 on Aug 2, 2013
Latest reply on Aug 2, 2013 by belowzero8
I have some code that I am updating.  Originally, I was just reading the data with the 'get_Value' method, but I am now trying to change the data with 'set_Value'.  However, when I call the 'set_Value' method I get a "NotImplementedException" which makes absolutely no sense to me. 

ICursor cur = joinTable.Search(qf, false);
using (ComReleaser comReleaser = new ComReleaser())
   {
      comReleaser.ManageLifetime(cur);

      IRow row = null; 
      while ((row = cur.NextRow()) != null)
      {
          //do some stuff
          row.set_Value(row.Fields.FindField(myFieldName), myValue); 
          cur.UpdateRow(row);
      }
   }


So that throws the exception.  It's pretty similar to the code under "Using an update cursor" here.

Also, I change the cursor to "ICursor cur = joinTable.Update(qf, false);" I get the exception at that line. 

Any ideas or words on the problem would be appreciated.

Outcomes