AnsweredAssumed Answered

If Edit Session On Then...

Question asked by davecouture on Jun 28, 2012
Latest reply on Jun 28, 2012 by kenbuja
How can I check if the Edit Session is on?  With my current code, ArcMap crashes when not in Edit Session.  I'd like to put a warning for the user to start an Edit Session, if they forgot.

                 Dim pEnumFeature As ESRI.ArcGIS.Geodatabase.IEnumFeature         Dim pFeature As ESRI.ArcGIS.Geodatabase.IFeature         Dim pEditor As ESRI.ArcGIS.Editor.IEditor         Dim featureCode As String         Dim def As String          pEditor = My.ArcMap.Application.FindExtensionByName("esriEditor.Editor")         pEnumFeature = pEditor.EditSelection         pEnumFeature.Reset()         pFeature = pEnumFeature.Next         pEditor.StartOperation()