<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: get field value in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627215#M16896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Looks to me like you have code inside your class definition that is not inside a property or function definition.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought he is correct. move your written functions ("SelectMapFeaturesByAttributeQuery", "ClearSelectedMapFeatures") to inside the "Public Class Tool1".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 22:43:10 GMT</pubDate>
    <dc:creator>RayanthaRathnayake</dc:creator>
    <dc:date>2013-11-14T22:43:10Z</dc:date>
    <item>
      <title>get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627209#M16890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hallo everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to make a tool in arcobjects using VStudio 2010 and VB (.net, framework 3.5). I want to select a particular shapefile, then select the first record of it (FID=0) and then assign the value of a particular field to variable. After that with a for loop I will take the values of that field for all the rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have made functions for all the actions (select layer by name, select row, select field by name) but it doesn't work. I get silly warnings and correction, but I am new to arcobjects and I can't handle it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is welcomed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 15:36:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627209#M16890</guid>
      <dc:creator>NestorasPapadopoulos</dc:creator>
      <dc:date>2013-11-09T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627210#M16891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hallo everyone,&lt;BR /&gt;I am trying to make a tool in arcobjects using VStudio 2010 and VB (.net, framework 3.5). I want to select a particular shapefile, then select the first record of it (FID=0) and then assign the value of a particular field to variable. After that with a for loop I will take the values of that field for all the rows.&lt;BR /&gt;I have made functions for all the actions (select layer by name, select row, select field by name) but it doesn't work. I get silly warnings and correction, but I am new to arcobjects and I can't handle it.&lt;BR /&gt;Any help is welcomed&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You're going to need to post some code or show us the warning for us to help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 12:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627210#M16891</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-11-11T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627211#M16892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hallo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for replying to my thread. The code I' ve written since now is below. trig_srtm30 is a point shapefile and poly_C1toend is a polygon shapefile. I want to select each point, get the coordinates of each point and then pove the whole polygon shapefile according to the coordinates I get. Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Imports ESRI.ArcGIS.esriSystem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Imports ESRI.ArcGIS.Geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Imports ESRI.ArcGIS.Geodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Imports ESRI.ArcGIS.Carto&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Class Tool1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Inherits ESRI.ArcGIS.Desktop.AddIns.Tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Region "Select Map Features by Attribute Query"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;summary&amp;gt;Select features in the IActiveView by an attribute query using a SQL syntax in a where clause.&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;''' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;param name="activeView"&amp;gt;An IActiveView interface&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;param name="featureLayer"&amp;gt;An IFeatureLayer interface to select upon&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;param name="whereClause"&amp;gt;A System.String that is the SQL where clause syntax to select features. Example: "CityName = 'Redlands'"&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;remarks&amp;gt;Providing and empty string "" will return all records.&amp;lt;/remarks&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub SelectMapFeaturesByAttributeQuery(ByVal activeView As IActiveView, ByVal featureLayer As IFeatureLayer, ByVal whereClause As System.String)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If activeView Is Nothing OrElse featureLayer Is Nothing OrElse whereClause Is Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Return&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim featureSelection As IFeatureSelection = TryCast(featureLayer, IFeatureSelection) ' Dynamic Cast&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Set up the query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim queryFilter As IQueryFilter = New QueryFilterClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; queryFilter.WhereClause = whereClause&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Invalidate only the selection cache. Flag the original selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Perform the selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; featureSelection.SelectFeatures(queryFilter, esriSelectionResultEnum.esriSelectionResultNew, False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Flag the new selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#End Region&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' select coords and assign to variables by select Map Features by Atribute Query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim row As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pX As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pY As Double&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SelectMapFeaturesByAttributeQuery(activeView, trig_srtm30, "FID=row")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pX=trig_srtm30.X(Value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pY=trig_srtm30.Y(Value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Region "Clear Selected Map Features"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;summary&amp;gt;Clear the selected features in the IActiveView for a specified IFeatureLayer.&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;''' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;param name="activeView"&amp;gt;An IActiveView interface&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;param name="featureLayer"&amp;gt;An IFeatureLayer&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;''' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'''&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub ClearSelectedMapFeatures(ByVal activeView As IActiveView, ByVal featureLayer As IFeatureLayer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If activeView Is Nothing OrElse featureLayer Is Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim featureSelection As IFeatureSelection = TryCast(featureLayer, IFeatureSelection) ' Dynamic Cast&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Invalidate only the selection cache. Flag the original selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Clear the selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; featureSelection.Clear()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' Flag the new selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#End Region&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Clear selection &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClearSelectedMapFeatures(activeView, trig_srtm30)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' select polygon shapefile which will be moved by select Map Features by Atribute Query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectMapFeaturesByAttributeQuery(activeView, poly_C1toend, "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' move shapefile according to new coords&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Public Sub New()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Protected Overrides Sub OnUpdate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enabled = My.ArcMap.Application IsNot Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Class&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 13:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627211#M16892</guid>
      <dc:creator>NestorasPapadopoulos</dc:creator>
      <dc:date>2013-11-11T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627212#M16893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you edit your post and put the code in the 'CODE' tags?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what is the error and what line is it being thrown at?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 13:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627212#M16893</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-11-11T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627213#M16894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you edit your post and put the code in the 'CODE' tags?&lt;BR /&gt;&lt;BR /&gt;Also, what is the error and what line is it being thrown at?&lt;/BLOCKQUOTE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Imports ESRI.ArcGIS.esriSystem
Imports ESRI.ArcGIS.Geometry
Imports ESRI.ArcGIS.Geodatabase
Imports ESRI.ArcGIS.Carto
Public Class Tool1
&amp;nbsp; Inherits ESRI.ArcGIS.Desktop.AddIns.Tool

&amp;nbsp;&amp;nbsp;&amp;nbsp; 

#Region "Select Map Features by Attribute Query"

'''&amp;lt;summary&amp;gt;Select features in the IActiveView by an attribute query using a SQL syntax in a where clause.&amp;lt;/summary&amp;gt;
''' 
'''&amp;lt;param name="activeView"&amp;gt;An IActiveView interface&amp;lt;/param&amp;gt;
'''&amp;lt;param name="featureLayer"&amp;gt;An IFeatureLayer interface to select upon&amp;lt;/param&amp;gt;
'''&amp;lt;param name="whereClause"&amp;gt;A System.String that is the SQL where clause syntax to select features. Example: "CityName = 'Redlands'"&amp;lt;/param&amp;gt;
'''&amp;nbsp; 
'''&amp;lt;remarks&amp;gt;Providing and empty string "" will return all records.&amp;lt;/remarks&amp;gt;
Public Sub SelectMapFeaturesByAttributeQuery(ByVal activeView As IActiveView, ByVal featureLayer As IFeatureLayer, ByVal whereClause As System.String)

&amp;nbsp; If activeView Is Nothing OrElse featureLayer Is Nothing OrElse whereClause Is Nothing Then
&amp;nbsp;&amp;nbsp; Return
&amp;nbsp; End If

&amp;nbsp; Dim featureSelection As IFeatureSelection = TryCast(featureLayer, IFeatureSelection) ' Dynamic Cast

&amp;nbsp; ' Set up the query
&amp;nbsp; Dim queryFilter As IQueryFilter = New QueryFilterClass
&amp;nbsp; queryFilter.WhereClause = whereClause

&amp;nbsp; ' Invalidate only the selection cache. Flag the original selection
&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)

&amp;nbsp; ' Perform the selection
&amp;nbsp; featureSelection.SelectFeatures(queryFilter, esriSelectionResultEnum.esriSelectionResultNew, False)

&amp;nbsp; ' Flag the new selection
&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)

End Sub
#End Region

&amp;nbsp;&amp;nbsp;&amp;nbsp; ' select coords and assign to variables by select Map Features by Atribute Query
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim row As Double
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pX As Double
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pY As Double

SelectMapFeaturesByAttributeQuery(activeView, trig_srtm30, "FID=row")

&amp;nbsp;&amp;nbsp;&amp;nbsp; pX=trig_srtm30.X(Value)
&amp;nbsp;&amp;nbsp;&amp;nbsp; pY=trig_srtm30.Y(Value)

#Region "Clear Selected Map Features"

'''&amp;lt;summary&amp;gt;Clear the selected features in the IActiveView for a specified IFeatureLayer.&amp;lt;/summary&amp;gt;
''' 
'''&amp;lt;param name="activeView"&amp;gt;An IActiveView interface&amp;lt;/param&amp;gt;
'''&amp;lt;param name="featureLayer"&amp;gt;An IFeatureLayer&amp;lt;/param&amp;gt;
''' 
'''&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
Public Sub ClearSelectedMapFeatures(ByVal activeView As IActiveView, ByVal featureLayer As IFeatureLayer)

&amp;nbsp; If activeView Is Nothing OrElse featureLayer Is Nothing Then

&amp;nbsp;&amp;nbsp;&amp;nbsp; Return

&amp;nbsp; End If

&amp;nbsp; Dim featureSelection As IFeatureSelection = TryCast(featureLayer, IFeatureSelection) ' Dynamic Cast

&amp;nbsp; ' Invalidate only the selection cache. Flag the original selection
&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)

&amp;nbsp; ' Clear the selection
&amp;nbsp; featureSelection.Clear()

&amp;nbsp; ' Flag the new selection
&amp;nbsp; activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, Nothing, Nothing)

End Sub
#End Region
&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Clear selection 
&amp;nbsp;&amp;nbsp;&amp;nbsp; ClearSelectedMapFeatures(activeView, trig_srtm30)

&amp;nbsp;&amp;nbsp;&amp;nbsp; ' select polygon shapefile which will be moved by select Map Features by Atribute Query
&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectMapFeaturesByAttributeQuery(activeView, poly_C1toend, "")

&amp;nbsp;&amp;nbsp;&amp;nbsp; ' move shapefile according to new coords


&amp;nbsp; Public Sub New()



&amp;nbsp; End Sub

&amp;nbsp; Protected Overrides Sub OnUpdate()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Enabled = My.ArcMap.Application IsNot Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub

End Class
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the warning "Warning 1 The file content is an invalid ESRI ArcGIS Add-in configuration xml."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the errors that "Declarations expected" at lines 48, 50, 51, 83&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for replying&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627213#M16894</guid>
      <dc:creator>NestorasPapadopoulos</dc:creator>
      <dc:date>2021-12-12T02:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627214#M16895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks to me like you have code inside your class definition that is not inside a property or function definition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627214#M16895</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-11-12T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: get field value</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627215#M16896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Looks to me like you have code inside your class definition that is not inside a property or function definition.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought he is correct. move your written functions ("SelectMapFeaturesByAttributeQuery", "ClearSelectedMapFeatures") to inside the "Public Class Tool1".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 22:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-field-value/m-p/627215#M16896</guid>
      <dc:creator>RayanthaRathnayake</dc:creator>
      <dc:date>2013-11-14T22:43:10Z</dc:date>
    </item>
  </channel>
</rss>

