<?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: VBA Coding for Selected features in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124783#M3285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It would probably would not hurt to elaborate on my need(s). When looking at the attached pdf, I want to be able to select 2000 (year), 1 (route #), and house sparrow (species) and then click calculate to pop up a message box that will tell me the number of species found for that route and time year. Each selection no matter the combination will have one single unique attribute. All of this information is found in the same shapefile/attribute table. I was thinking maybe some sort of TableLookUp but reading about it on Developer Help led me to believing that was not the right choice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 16:43:31 GMT</pubDate>
    <dc:creator>AdamOller</dc:creator>
    <dc:date>2010-12-16T16:43:31Z</dc:date>
    <item>
      <title>VBA Coding for Selected features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124782#M3284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've developed the following form and it has all of the possible field attributes that could be selected to identify one single unique attribute. I want to be able to select all three and choose "calculate" to provide a message box that will give the unique attribute. My coding abilities are limited to the Getting to Know ArcObjects book which has helped me greatly in creating this form and adding all of the items in the drop down menus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;aoller1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SIUC Graduate Assistant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 14:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124782#M3284</guid>
      <dc:creator>AdamOller</dc:creator>
      <dc:date>2010-12-16T14:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Coding for Selected features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124783#M3285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It would probably would not hurt to elaborate on my need(s). When looking at the attached pdf, I want to be able to select 2000 (year), 1 (route #), and house sparrow (species) and then click calculate to pop up a message box that will tell me the number of species found for that route and time year. Each selection no matter the combination will have one single unique attribute. All of this information is found in the same shapefile/attribute table. I was thinking maybe some sort of TableLookUp but reading about it on Developer Help led me to believing that was not the right choice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 16:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124783#M3285</guid>
      <dc:creator>AdamOller</dc:creator>
      <dc:date>2010-12-16T16:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Coding for Selected features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124784#M3286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: if you want "the number of species found for that route and time year" -- why would you have the user select a species? Wouldn't you just have them select a route and year, and then count the number of species?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do you actually want to calculate the count of individuals of a particular species? Is there a fourth field for that in the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 17:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124784#M3286</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-16T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Coding for Selected features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124785#M3287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Adam,&lt;BR /&gt;&lt;BR /&gt;My question is: if you want "the number of species found for that route and time year" -- why would you have the user select a species? Wouldn't you just have them select a route and year, and then count the number of species?&lt;BR /&gt;&lt;BR /&gt;Or do you actually want to calculate the count of individuals of a particular species? Is there a fourth field for that in the table?&lt;BR /&gt;&lt;BR /&gt;-Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, there are four different species and there is a fourth field that has total number of species that has a particular year, route, and species ID associated with it in the row itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 18:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124785#M3287</guid>
      <dc:creator>AdamOller</dc:creator>
      <dc:date>2010-12-16T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Coding for Selected features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124786#M3288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, there are four different species and there is a fourth field that has total number of species that has a particular year, route, and species ID associated with it in the row itself.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, I see, you're not actually &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;calculating&lt;/SPAN&gt;&lt;SPAN&gt; the value -- you just need to return it from a single field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way to do that would be to use either an IFeatureClass.Search or an IFeatureLayer.Search, and pass in an IQueryFilter with its WhereClause set to the fields and values for your three parameters. From the cursor returned from that, get the value of your fourth field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/WhereClause_Property/0025000006n5000000/"&gt;WhereClause reference &lt;/A&gt;&lt;SPAN&gt;to get you started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 22:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vba-coding-for-selected-features/m-p/124786#M3288</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2010-12-16T22:16:18Z</dc:date>
    </item>
  </channel>
</rss>

