Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

ICursor.set_Value NotImplementedException?

$
0
0
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.

Code:

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.

Viewing all articles
Browse latest Browse all 1374

Trending Articles