Is This Content Helpful?
We're glad to know this article was helpful.
Running ArcObjects code returns the following error:
"Method or data member not found."
The Set keyword is used incorrectly. Set is required to assign a property by reference and to create new objects. Set is not required when setting a property by value.
Follow these guidelines when deciding whether or not to use Set in your code:
Set pPageLayout = pMxDoc.PageLayout
pMap.MapUnits = esriFeet
Dim pFeature as IFeature
Set pFeature = New Feature
For more information on Set see the book 'Exploring ArcObjects'.