AnsweredAssumed Answered

upgrade an extension for ArcGIS Desktop from version 10.0 to 10.2.1.

Question asked by youmei_ge on Dec 15, 2014
Latest reply on Jun 25, 2015 by FGibson-esristaff

Hi all,

I am struggling to find out of if the feature has been
modified and the code that I have used before was

          
Private Shared m_appReference As AppReference

If m_appReference.fnGetEditor.CurrentTask.Name = "Modify Feature" Then

   ‘do something'

End If

          
Definition of the fnGetEditior is as below

Public Function fnGetEditor() As IEditor     
   Dim pId As New UID
  
   Dim pEditor As IEditor

      
   Try

          ' get the Editor based on its UID value - esriCore.Editor
          
          ' pId.Value = "esriCore.Editor"

          
          pId.Value = "esriEditor.Editor"
       
          pEditor = Me.Application.FindExtensionByCLSID(pId)

       
          Return pEditor

         
   Catch ex As Exception
   
          Return Nothing

   End Try

 

End Function

 

Any help would be appreciated.

 

Thanks

Outcomes