alphamale

Retaining selection set

Discussion created by alphamale on Jul 14, 2011
Latest reply on Jul 15, 2011 by alphamale
It's the end of a long day -- here's what I've got

Private Sub CommandButton4_Click()
  Dim pMxDoc As IMxDocument
  Set pMxDoc = ThisDocument
  Dim pMap As IMap
  Set pMap = pMxDoc.FocusMap
  Dim pFL As IFeatureLayer
  Set pFL = pMap.Layer(0)
 
  Dim pQFilter As IQueryFilter
  Set pQFilter = New QueryFilter
  pQFilter.WhereClause = "PLU > 20"

  Dim pFCursor As IFeatureCursor
  Set pFCursor = pFL.Search(pQFilter, True)

  MsgBox ("done")
 
End Sub


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.  (I'm thinking that the user will click a different button to either change it or go to the next record).  This first button simply selects records.  Maybe there's other kind of selection to get the points highlighted and such. 

Do I need to declare some sort of ISelectionSet as a global variable or is there an easier way?

Outcomes