<?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: User Defined Types</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/07/15/user-defined-types/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/07/15/user-defined-types/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:39:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/15/user-defined-types/#comment-1969</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 16 Jul 2004 15:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=685#comment-1969</guid>
		<description>&lt;p&gt;I use UDTs when I can simply replace them with variables, like the example.  Anything more complicated than that, and I use a class.  For instance, if I have a variable that I need to split out, e.g. a playing card - I may want the suit or the number separately, so I&#039;ll use a class with Let/Get Value (10S) and Get only suit (S) and number (10) properties.  So it doesn&#039;t take much complexity for me to go to a class over a UDT.  The other situation is if I have to manipulate a lot of properties/variables at once.  I use a class so I can have a method that does all that work.&lt;/p&gt;
&lt;p&gt;In practice, I usually start with a bunch of variables.  The I find myself passing those variables between subs and think &quot;How about a UDT&quot;.  Once I have the UDT I start seeing the benefits of having a class.  So it&#039;s kind of an evolutionary process for me.  I really should consider classes first, but I don&#039;t.&lt;/p&gt;
&lt;p&gt;And I agree that they&#039;re more fun.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I use UDTs when I can simply replace them with variables, like the example.  Anything more complicated than that, and I use a class.  For instance, if I have a variable that I need to split out, e.g. a playing card &#8211; I may want the suit or the number separately, so I&#8217;ll use a class with Let/Get Value (10S) and Get only suit (S) and number (10) properties.  So it doesn&#8217;t take much complexity for me to go to a class over a UDT.  The other situation is if I have to manipulate a lot of properties/variables at once.  I use a class so I can have a method that does all that work.</p>
<p>In practice, I usually start with a bunch of variables.  The I find myself passing those variables between subs and think &#8220;How about a UDT&#8221;.  Once I have the UDT I start seeing the benefits of having a class.  So it&#8217;s kind of an evolutionary process for me.  I really should consider classes first, but I don&#8217;t.</p>
<p>And I agree that they&#8217;re more fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/15/user-defined-types/#comment-1968</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Fri, 16 Jul 2004 13:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=685#comment-1968</guid>
		<description>&lt;p&gt;When would you use a struct (Type) and when to use a class? I almost always use classes because they are more fun . There have been a few posts in the ngs recently which have put me off Types even more e.g. can&#039;t add them to a Collection, can&#039;t be used for return types for functions in class modules, etc.&lt;/p&gt;
&lt;p&gt;Jamie.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>When would you use a struct (Type) and when to use a class? I almost always use classes because they are more fun . There have been a few posts in the ngs recently which have put me off Types even more e.g. can&#8217;t add them to a Collection, can&#8217;t be used for return types for functions in class modules, etc.</p>
<p>Jamie.</p>
<p></p>
]]></content:encoded>
	</item>
</channel>
</rss>

