SammerI 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.RegardsEzequias
Hi,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!Regards,Sameer
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 unhandledwrkspcedit.StartEditOperation();myTable.GetRow(5).set_Value(8,"anyvalue"); wrkspcedit.StopEditOperation();wrkspcedit.StopEditing(true);What can I do?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.