Doesn't seem to matter. I have tried both SDE and File GDB. This code throws an error on the third iteration through the loop. The first iteration yields the OBJECTID, the second the FEATUREID. And yes, all fields are accessible through catalog and arcmap. Dim pMap As IMap = My.ArcMap.Document.FocusMap Dim pPIDLayer As IFeatureLayer = pMap.Layer(0) Dim pPIDFClass As IFeatureClass = pPIDLayer.FeatureClass Dim pPIDFCursor As IFeatureCursor = pPIDFClass.Search(Nothing, False) Dim pPIDFeature As IFeature = pPIDFCursor.NextFeature For i As Integer = 0 To 5 MsgBox(pPIDFeature.Value(i)) Next
bump...Suggestions anyone? Thanks!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.