Calling IFeatureClass.FeatureCount on a Query Table fails in a File Geodatabase.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM031954
Submitted
February 7, 2008
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.3
Version Fixed
9.3
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
Dim pFeatureCursor As IFeatureCursor Set pFeatureCursor = pFeatureClass.Search(Nothing, False) Dim dCount As Double Dim pIFeature As IFeature dCount = 0 Set pFeature = pFeatureCursor.NextFeature Do Until pFeature Is Nothing dCount = dCount + 1 Set pFeature = pFeatureCursor.NextFeature Loop MsgBox dCount