AnsweredAssumed Answered

Arcmap FindField to list vb.net

Question asked by siggisal on Oct 31, 2015
Latest reply on Nov 2, 2015 by FGibson-esristaff

Hi

 

I am try to add FindField to list it work well on small area but if I zoom out and select bigger area

I get only 0 to the list not the number in the field

 

     Dim pMxdoc As IMxDocument

        Dim pMap As IMap

         pMxdoc = My.ArcMap.Document

        pMap = pMxdoc.FocusMap

        Dim pLayer As IFeatureLayer

        pLayer = pMap.Layer(3)

 

        Dim pFS As IFeatureSelection

        pFS = pLayer

        Dim pEnumFeature As IEnumFeature

        pEnumFeature = pMxdoc.FocusMap.FeatureSelection

 

        Dim pF As IFeature

        pF = pEnumFeature.Next

 

        Do Until pF Is Nothing

                     On Error Resume Next

            iList.Add(pF.Value(pF.Fields.FindField("TYPENUMBER")))

            pF = pEnumFeature.Next

        Loop

Outcomes