<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using the &amp;quot;IsNothing&amp;quot; keyword</title><link>https://www.infopathdev.com:443/forums/thread/15105.aspx</link><pubDate>Fri, 16 Feb 2007 20:07:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15105</guid><dc:creator>DuneBug</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15105</wfw:commentRss><description>I don't know what coding interface you are using (VB.net or the built-in infopath script.&lt;br /&gt;you might try this:&lt;br /&gt;&lt;br /&gt;dim obj as object&lt;br /&gt;&lt;br /&gt;if not obj is nothing then&lt;br /&gt;  ' do blah&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;"Is" is the comparison operator for reference types. Using it is the same thing as saying "if obj = nothing" except since obj and nothing are both reference types the "=" and "&amp;lt;&amp;gt;" operators won't work.&lt;br /&gt;&lt;br /&gt;Give it a shot, I hope it works. If it doesn't oh well, i gave it the old college try.</description></item><item><title>Re: Using the &amp;quot;IsNothing&amp;quot; keyword</title><link>https://www.infopathdev.com:443/forums/thread/15104.aspx</link><pubDate>Fri, 16 Feb 2007 13:30:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15104</guid><dc:creator>snufse</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15104</wfw:commentRss><description>Patrick:&lt;br /&gt;&lt;br /&gt;Is there a way to ask Microsoft? Do you have a reference site I could use? Thanks.</description></item><item><title>Re: Using the &amp;quot;IsNothing&amp;quot; keyword</title><link>https://www.infopathdev.com:443/forums/thread/15103.aspx</link><pubDate>Fri, 16 Feb 2007 08:58:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15103</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15103</wfw:commentRss><description>Hi Rolf, &lt;br /&gt;Sorry, but I don't know. Could be something to do with the limitations of the dataset. InfoPath supports them, but there are limitations. I don't have confidence that it is a dataset issue, though.</description></item><item><title>Re: Using the &amp;quot;IsNothing&amp;quot; keyword</title><link>https://www.infopathdev.com:443/forums/thread/15102.aspx</link><pubDate>Thu, 15 Feb 2007 14:42:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15102</guid><dc:creator>snufse</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15102</wfw:commentRss><description>I have a windows app (code below) and works fine. In InfoPath 2007 gives me syntax error??????&lt;br /&gt;&lt;br /&gt;&lt;b&gt;If Not IsNothing(MyDataSet) Then&lt;br /&gt;  If MyDataSet.Tables("Table").Rows.Count &amp;gt; 0 Then&lt;br /&gt;    TextBox1.Text = MyDataSet.Tables("Table").Rows(0).Item(1)&lt;br /&gt;    TextBox2.Text = MyDataSet.Tables("Table").Rows(0).Item(22)&lt;br /&gt;  End If&lt;br /&gt;End If&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Also from MSDN Help&lt;br /&gt;&lt;br /&gt;&lt;b&gt;IsNothing returns True if the expression represents an object variable that currently has no object assigned to it; otherwise, it returns False.&lt;br /&gt;&lt;br /&gt;IsNothing is intended to work on reference types. A value type cannot hold a value of Nothing and reverts to its default value if you assign Nothing to it. If you supply a value type in Expression, IsNothing always returns False.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;The following example uses the IsNothing function to determine if an object variable is associated with any object instance.&lt;br /&gt;&lt;br /&gt;Visual Basic  Copy Code &lt;br /&gt;Dim testVar As Object&lt;br /&gt;' No instance has been assigned to variable testVar yet.&lt;br /&gt;Dim testCheck As Boolean&lt;br /&gt;' The following call returns True.&lt;br /&gt;testCheck = IsNothing(testVar)&lt;br /&gt;' Assign a string instance to variable testVar.&lt;br /&gt;testVar = "ABCDEF"&lt;br /&gt;' The following call returns False.&lt;br /&gt;testCheck = IsNothing(testVar)&lt;br /&gt;' Disassociate variable testVar from any instance.&lt;br /&gt;testVar = Nothing&lt;br /&gt;' The following call returns True.&lt;br /&gt;testCheck = IsNothing(testVar)&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;</description></item><item><title>Re: Using the &amp;quot;IsNothing&amp;quot; keyword</title><link>https://www.infopathdev.com:443/forums/thread/15101.aspx</link><pubDate>Wed, 14 Feb 2007 18:44:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15101</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15101</wfw:commentRss><description>Hi Rolf,&lt;br /&gt;What is "IsNothing"? Is this a built in function in VB.NET? If it is, it should be supported because InfoPath is .NET compatible.</description></item><item><title>Using the "IsNothing" keyword</title><link>https://www.infopathdev.com:443/forums/thread/13059.aspx</link><pubDate>Wed, 14 Feb 2007 17:25:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13059</guid><dc:creator>snufse</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13059</wfw:commentRss><description>I my code behind I am using the "IsNothing" keyword and it gives an error: "Name "IsnNothing" is not declared". Is this not supported by InfoPath through the programming interface????&lt;br /&gt;&lt;br /&gt;&lt;b&gt;If Not IsNothing(MyDataSet) Then&lt;br /&gt; If MyDataSet.Tables("Table").Rows.Count &amp;gt; 0 Then&lt;br /&gt;    myNav.SelectSingleNode("//my:name", Me.NamespaceManager). _&lt;br /&gt;    SetValue(MyDataSet.Tables("Table").Rows(0).Item(1))&lt;br /&gt;    myNav.SelectSingleNode("//my:department", Me.NamespaceManager). _&lt;br /&gt;    SetValue(MyDataSet.Tables("Table").Rows(0).Item(22))&lt;br /&gt; End If&lt;br /&gt;End If&lt;/b&gt;</description></item></channel></rss>