Objects not accessible because they are "Friends"

3400
3
11-01-2010 11:00 AM
RandyHauser
New Contributor III
With Arc10 and VS2008 / VB.net, I'm getting the following error:

"(object) is not accessible in this context because it is 'Friend'"

for esriUnits and tagRECT.

Any ideas why they are inaccessible, especially constants like esriUnits?
0 Kudos
3 Replies
RandyHauser
New Contributor III
With Arc10 and VS2008 / VB.net, I'm getting the following error:

"(object) is not accessible in this context because it is 'Friend'"

for esriUnits and tagRECT.

Any ideas why they are inaccessible, especially constants like esriUnits?


Evidently they need to be called as a full reference:

ESRI.ArcGIS.esriSystem.esriUnits
ESRI.ArcGIS.esriSystem.esriUnits.esriInches

..etc
0 Kudos
KentRothrock
New Contributor II
Thanks for the post Marc.  That helped me out.
0 Kudos
JasonTipton
Occasional Contributor III
The reason that you have to call the full name is that the namespace isn't imported. Go to Properties>References and check the appropriate namespace
0 Kudos