Select to view content in your preferred language

m_pEditor.StopOperation argument

473
2
10-26-2010 07:13 AM
JillFritz
Emerging Contributor
What argument do I enter to stop the attribute change (user edit in attribute table field) that initiated this sub?

Private Sub EditorEvents2_OnStartOperation()
        If gi_Selection > 1 Then
            MsgBox "blah"
            gb_MultipleEdit = True
            'm_pEditor.StopOperation(??Argument??)
    Else
        gb_MultipleEdit = False
    End If
End Sub

Thanks,
Jill, USFS Region 6
0 Kudos
2 Replies
NeilClemmons
Honored Contributor
The argument passed into the StopOperation method is the text that will appear in ArcMap as tooltips for the Undo/Redo buttons and the text for the Undo/Redo commands on the Edit menu.
0 Kudos
JillFritz
Emerging Contributor
What argument (or code) will stop the Field Calculator from loading?
m_pEditor.StopOperation("<Calculator?>")

Neil's answer worked for
m_pEditor.StopOperation ("Database Row Change") and
m_pEditor.StopOperation ("ObjectClassEvents_OnChange").
Thanks, Neil!

Thanks, Jill
0 Kudos