AnsweredAssumed Answered

is there a way to get ALL attributes of ONE feature

Question asked by mauricesch on Jun 15, 2012
Latest reply on Jun 19, 2012 by mauricesch

I can't find the proper interface, if there is one, to retrieve the values of one feature in an attribute table:

For Example, this code  :

Dim pMxDoc As IMxDocument Set pMxDoc = Application.Document Dim pMap As IMap Set pMap = pMxDoc.FocusMap Dim pActiveView As IActiveView Set pActiveView = pMap Dim pFeatureLayer As IFeatureLayer Set pFeatureLayer = pMap.Layer(0) Dim pFeatureSelection As IFeatureSelection Set pFeatureSelection = pFeatureLayer   Set pTable = pFeatureLayer.FeatureClass Dim pFClass As IFeatureClass Set pFClass = pFeatureLayer.FeatureClass Dim pFCursor As IFeatureCursor Set pFCursor = pFClass.Update(Nothing, False) Dim pF As IFeature Set pF = pFCursor.NextFeature   Do Until pF Is Nothing ListBox3.AddItem pF.Value(6) Set pF = pFCursor.NextFeature Loop

gives me all values of all features at index(6) of my attribute table.
I'm trying to get all values of just one feature.

The ICursor / IRow Interface works, if i got it right, the same way as the IFeatureCursor/ IFeature interface, both "moving vertically"  (NextRow/NextFeature)
Is there something like ~ NextColumn to move the Cursor "horizontal"?

Thanks for your help