<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with GDB NULL values in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-gdb-null-values/m-p/599583#M16091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found a solution from there: &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=985&amp;amp;t=84492" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=985&amp;amp;t=84492&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
If (feature.Value(taxname)) Is DBNull.Value Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.TextBox2.Text = ""
Else
&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.TextBox2.Text = feature.Value(taxname)
End If&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:43:59 GMT</pubDate>
    <dc:creator>DaveCouture</dc:creator>
    <dc:date>2021-12-12T01:43:59Z</dc:date>
    <item>
      <title>Problem with GDB NULL values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-gdb-null-values/m-p/599582#M16090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any idea how I can get ArcMap to stop crashing, when getting NULL attribute values, from a GDB?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works, but not with NULLs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;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)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-gdb-null-values/m-p/599582#M16090</guid>
      <dc:creator>DaveCouture</dc:creator>
      <dc:date>2012-06-20T17:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with GDB NULL values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-gdb-null-values/m-p/599583#M16091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found a solution from there: &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=985&amp;amp;t=84492" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=985&amp;amp;t=84492&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
If (feature.Value(taxname)) Is DBNull.Value Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.TextBox2.Text = ""
Else
&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.TextBox2.Text = feature.Value(taxname)
End If&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:43:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problem-with-gdb-null-values/m-p/599583#M16091</guid>
      <dc:creator>DaveCouture</dc:creator>
      <dc:date>2021-12-12T01:43:59Z</dc:date>
    </item>
  </channel>
</rss>

