Thanks for your reply.
I tried the code without if(). But, the attribute table value did not change.
I have 2 shapes in directory "D:\Shape\" . Shape1 and Shape2.
I need change values of Shape1.
IWorkspaceEdit wrkspcedit = pFeatWorkspace as IWorkspaceEdit;
But here wrkspcedit don't show Shape1.
I tried the code below, but have an error.(NullReferenceException was unhandled)
WorkspaceEdit wrkspcedit = myTable as IWorkspaceEdit;
wrkspcedit.StartEditing(false); // NullReferenceException was unhandled
What can I do?
I have suggestions 🙂 !
try doing this one by one.
1. For shapefile first try without doing startediting and stopediting.
2. trying using same code without starteditoperation and stopeditoperation coz this is used for SDE.
3. try using IEditor instead of workspaceedit.
4. trying using Ifeatureclass.search instead of update.
something outta this should work!
I am trying to make an insert. I am outside the ArcMap environment and this alternatives where tryed,but 3 and 4 (thanks). I also tryed a RowBuffer. Just in case. I am trying to update a dbf file, not a shapefile.
Any other suggestion? What such strange error message.