hzwols

Error using esriSpatialRelOverlaps

Discussion created by hzwols on Jun 23, 2011
Latest reply on Jun 29, 2011 by hzwols
Hello all,

The VBA code below gives me this error:
A subscription cannot be stored unless its event class already exists

This happens only when using esriSpatialRelOverlaps.
Set pFeatureLayer = pLayer
pSpatialFilter.SpatialRel = esriSpatialRelOverlaps
Set pSpatialFilter.geometry = pInFeature.ShapeCopy
Set pFeatureCursor = pFeatureLayer.FeatureClass.Search(pSpatialFilter, False)
Set pFeature = pFeatureCursor.NextFeature



Can somebody tell me what's going on? I think it has something to do with the migration to ArcGis10.

Greetings, Henk

Outcomes