<?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 Retaining selection set in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726495#M19370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's the end of a long day -- here's what I've got&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Private Sub CommandButton4_Click()&lt;BR /&gt;&amp;nbsp; Dim pMxDoc As IMxDocument&lt;BR /&gt;&amp;nbsp; Set pMxDoc = ThisDocument&lt;BR /&gt;&amp;nbsp; Dim pMap As IMap&lt;BR /&gt;&amp;nbsp; Set pMap = pMxDoc.FocusMap&lt;BR /&gt;&amp;nbsp; Dim pFL As IFeatureLayer&lt;BR /&gt;&amp;nbsp; Set pFL = pMap.Layer(0)&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Dim pQFilter As IQueryFilter&lt;BR /&gt;&amp;nbsp; Set pQFilter = New QueryFilter&lt;BR /&gt;&amp;nbsp; pQFilter.WhereClause = "PLU &amp;gt; 20"&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; Dim pFCursor As IFeatureCursor&lt;BR /&gt;&amp;nbsp; Set pFCursor = pFL.Search(pQFilter, True)&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; MsgBox ("done")&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;End Sub&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now for all these records (it's a point layer), I'd like the user to visit each point in turn -- I don't think I need help with that part -- then allow the user to change the PLU or agree with it.&amp;nbsp; (I'm thinking that the user will click a different button to either change it or go to the next record).&amp;nbsp; This first button simply selects records.&amp;nbsp; Maybe there's other kind of selection to get the points highlighted and such.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to declare some sort of ISelectionSet as a global variable or is there an easier way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 21:32:10 GMT</pubDate>
    <dc:creator>JoeMcCollum</dc:creator>
    <dc:date>2011-07-14T21:32:10Z</dc:date>
    <item>
      <title>Retaining selection set</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726495#M19370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's the end of a long day -- here's what I've got&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Private Sub CommandButton4_Click()&lt;BR /&gt;&amp;nbsp; Dim pMxDoc As IMxDocument&lt;BR /&gt;&amp;nbsp; Set pMxDoc = ThisDocument&lt;BR /&gt;&amp;nbsp; Dim pMap As IMap&lt;BR /&gt;&amp;nbsp; Set pMap = pMxDoc.FocusMap&lt;BR /&gt;&amp;nbsp; Dim pFL As IFeatureLayer&lt;BR /&gt;&amp;nbsp; Set pFL = pMap.Layer(0)&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Dim pQFilter As IQueryFilter&lt;BR /&gt;&amp;nbsp; Set pQFilter = New QueryFilter&lt;BR /&gt;&amp;nbsp; pQFilter.WhereClause = "PLU &amp;gt; 20"&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; Dim pFCursor As IFeatureCursor&lt;BR /&gt;&amp;nbsp; Set pFCursor = pFL.Search(pQFilter, True)&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; MsgBox ("done")&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;End Sub&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now for all these records (it's a point layer), I'd like the user to visit each point in turn -- I don't think I need help with that part -- then allow the user to change the PLU or agree with it.&amp;nbsp; (I'm thinking that the user will click a different button to either change it or go to the next record).&amp;nbsp; This first button simply selects records.&amp;nbsp; Maybe there's other kind of selection to get the points highlighted and such.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to declare some sort of ISelectionSet as a global variable or is there an easier way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 21:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726495#M19370</guid>
      <dc:creator>JoeMcCollum</dc:creator>
      <dc:date>2011-07-14T21:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining selection set</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726496#M19371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Having the user visit each selected item could be slow and tedious.&amp;nbsp; A better solution IMO would be to simply display the query results in a data grid so that the user can change the ones they want and simply ignore the rest.&amp;nbsp; I would also include a way for them to select multiple rows in the grid and update them to the same value all at once instead of having to edit each one individually.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 12:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726496#M19371</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-07-15T12:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining selection set</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726497#M19372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I adapted code from this thread to get me started:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=86538"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=86538&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 13:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retaining-selection-set/m-p/726497#M19372</guid>
      <dc:creator>JoeMcCollum</dc:creator>
      <dc:date>2011-07-15T13:33:55Z</dc:date>
    </item>
  </channel>
</rss>

