<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The New Keyword</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/11/24/the-new-keyword/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/11/24/the-new-keyword/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Anwar</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/11/24/the-new-keyword/#comment-17011</link>
		<dc:creator>Anwar</dc:creator>
		<pubDate>Tue, 25 Oct 2005 12:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=880#comment-17011</guid>
		<description>&lt;p&gt;Dick, the post itself is wonderful and Mr. Tushar has added a more realistic proof for avoidance of usage of New keyword. I tried the code and it did return me false. To conclude, I am in agreement with this post and gained some good knowledge from here.  Thanks guys. Cheers !&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick, the post itself is wonderful and Mr. Tushar has added a more realistic proof for avoidance of usage of New keyword. I tried the code and it did return me false. To conclude, I am in agreement with this post and gained some good knowledge from here.  Thanks guys. Cheers !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/11/24/the-new-keyword/#comment-2772</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Fri, 03 Dec 2004 05:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=880#comment-2772</guid>
		<description>&lt;p&gt;While machine benefits are nice, they are never the primary reason why I make conceptual decisions.  However, there is a important *functional* reason to not use New in the Dim statement.  It becomes impossible to test if an object is nothing :(  Try the following:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;Sub testIt()&lt;br&gt;
&#160; &#160; Dim x As New Class1&lt;br&gt;
&#160; &#160; Set x = Nothing&lt;br&gt;
&#160; &#160; MsgBox x Is Nothing&lt;br&gt;
&#160; &#160; End Sub&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The message box display will always be false.  Get rid of the New in the Dim statement and it becomes possible to test for nothing.&lt;/p&gt;
&lt;p&gt;That said, in VB.Net, it is strongly recommended to use the New clause in the Dim statement.  Apparently, the overhead no longer exists.  Don&#039;t ask me how or why.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>While machine benefits are nice, they are never the primary reason why I make conceptual decisions.  However, there is a important *functional* reason to not use New in the Dim statement.  It becomes impossible to test if an object is nothing <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   Try the following:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">Sub testIt()<br />
&nbsp; &nbsp; Dim x As New Class1<br />
&nbsp; &nbsp; Set x = Nothing<br />
&nbsp; &nbsp; MsgBox x Is Nothing<br />
&nbsp; &nbsp; End Sub</div>
</div>
<p>The message box display will always be false.  Get rid of the New in the Dim statement and it becomes possible to test for nothing.</p>
<p>That said, in VB.Net, it is strongly recommended to use the New clause in the Dim statement.  Apparently, the overhead no longer exists.  Don&#8217;t ask me how or why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/11/24/the-new-keyword/#comment-2739</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Thu, 02 Dec 2004 04:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=880#comment-2739</guid>
		<description>&lt;p&gt;Russell:  Thanks.  Be sure to let me know when your site is updated so I can have a look.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Russell:  Thanks.  Be sure to let me know when your site is updated so I can have a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russell</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/11/24/the-new-keyword/#comment-2727</link>
		<dc:creator>Russell</dc:creator>
		<pubDate>Thu, 02 Dec 2004 00:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=880#comment-2727</guid>
		<description>&lt;p&gt;Excellent Article!  This is one of the best explanations I&#039;ve seen on the subject.  It really bugs me that about 95% of all code I see that deals w/classes uses New in the Dim statement!  Spread the word!&lt;/p&gt;
&lt;p&gt;p.s.  Great site - I can&#039;t believe that I haven&#039;t heard of it before, but I&#039;ll be sure to link to it once I update my site.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Excellent Article!  This is one of the best explanations I&#8217;ve seen on the subject.  It really bugs me that about 95% of all code I see that deals w/classes uses New in the Dim statement!  Spread the word!</p>
<p>p.s.  Great site &#8211; I can&#8217;t believe that I haven&#8217;t heard of it before, but I&#8217;ll be sure to link to it once I update my site.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

