<?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 Attribute Value from selection VB.net in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-attribute-value-from-selection-vb-net/m-p/53158#M1414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am looking for some help retrieving specific attribute values from a shapefile.&lt;BR /&gt;&lt;BR /&gt;I want to search my attributes based on state name, and then populate a textbox with the states population, but I am having trouble figuring out how to access/retrieve the data in my attribute table.&lt;BR /&gt;&lt;BR /&gt;Any help/pointers would be appreciated.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use IQueryFilter to query the data.... something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public ICursor GetRestaurants(ITable table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create the query filter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IQueryFilter queryFilter = new QueryFilterClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Select the fields to be returned - the name and address of the businesses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilter.SubFields = "NAME, ADDRESS";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the filter to return only restaurants.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilter.WhereClause = "TYPE = 'Restaurant'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use the PostfixClause to alphabetically order the set by name. Although this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // has no effect on a File geodatabase, this will work for Personal and SDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // geodatabases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IQueryFilterDefinition queryFilterDef = (IQueryFilterDefinition)queryFilter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilterDef.PostfixClause = "ORDER BY NAME";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICursor cursor = table.Search(queryFilter, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return cursor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 09:25:55 GMT</pubDate>
    <dc:creator>Venkata_RaoTammineni</dc:creator>
    <dc:date>2010-12-17T09:25:55Z</dc:date>
    <item>
      <title>Get Attribute Value from selection VB.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-attribute-value-from-selection-vb-net/m-p/53157#M1413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking for some help retrieving specific attribute values from a shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to search my attributes based on state name, and then populate a textbox with the states population, but I am having trouble figuring out how to access/retrieve the data in my attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help/pointers would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 20:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-attribute-value-from-selection-vb-net/m-p/53157#M1413</guid>
      <dc:creator>MatthewPeterson</dc:creator>
      <dc:date>2010-12-15T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Attribute Value from selection VB.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-attribute-value-from-selection-vb-net/m-p/53158#M1414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am looking for some help retrieving specific attribute values from a shapefile.&lt;BR /&gt;&lt;BR /&gt;I want to search my attributes based on state name, and then populate a textbox with the states population, but I am having trouble figuring out how to access/retrieve the data in my attribute table.&lt;BR /&gt;&lt;BR /&gt;Any help/pointers would be appreciated.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use IQueryFilter to query the data.... something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public ICursor GetRestaurants(ITable table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create the query filter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IQueryFilter queryFilter = new QueryFilterClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Select the fields to be returned - the name and address of the businesses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilter.SubFields = "NAME, ADDRESS";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the filter to return only restaurants.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilter.WhereClause = "TYPE = 'Restaurant'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use the PostfixClause to alphabetically order the set by name. Although this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // has no effect on a File geodatabase, this will work for Personal and SDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // geodatabases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IQueryFilterDefinition queryFilterDef = (IQueryFilterDefinition)queryFilter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilterDef.PostfixClause = "ORDER BY NAME";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICursor cursor = table.Search(queryFilter, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return cursor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 09:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-attribute-value-from-selection-vb-net/m-p/53158#M1414</guid>
      <dc:creator>Venkata_RaoTammineni</dc:creator>
      <dc:date>2010-12-17T09:25:55Z</dc:date>
    </item>
  </channel>
</rss>

