davecouture

Problem with GDB NULL values

Discussion created by davecouture on Jun 20, 2012
Latest reply on Jun 20, 2012 by davecouture
Any idea how I can get ArcMap to stop crashing, when getting NULL attribute values, from a GDB? 

This code works, but not with NULLs:

Dim cursor As IFeatureCursor
Dim feature As IFeature
Dim taxname As Integer

cursor = featureLayer.Search(queryFilter, False)
feature = cursor.NextFeature

taxname = feature.Fields.FindField("taxname")
Me.TextBox2.Text = feature.Value(taxname)

Outcomes