Hi James,
I keep getting a run time error @ 'pEditor.StartOperation' in startEditing routine and I am not sure why. Any idea?
I'm still trying to figure it out.
Dan.
First I'd check to make sure you are setting the correct layer. I had added this to the code, expecting you to change the name of the layer to your own:If pGeoFeatureLayer.Name = "The Name of The Layer you Want to Edit Goes Here" Then <--this should changed to your layer
Next, I'd make certain that the map reference is correctly set (I think you said you are working in VBA environment, which will have differences from the code I posted). Mainly you need to make sure pEditor is getting set:Private Sub GetEditorReference()
Dim pID As ESRI.ArcGIS.esriSystem.UID
pID = New ESRI.ArcGIS.esriSystem.UID
pID.Value = "esriCore.Editor"
pEditor = m_pApp.FindExtensionByCLSID(pID)
End Sub
If not, then you need to correctly set it (I cannot remember how to do it in VBA, something to do with the ThisDocument maybe).Next, I'd step thru the code and see what else is not getting set. If .StartOperation is failing then something has not properly been implemented.