<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Create class and methods in x++</title>
	<link>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/</link>
	<description>Dynamics AX development blog</description>
	<pubDate>Thu, 09 Feb 2012 17:51:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Erik Paulsson</title>
		<link>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/#comment-22104</link>
		<dc:creator>Erik Paulsson</dc:creator>
		<pubDate>Tue, 26 Apr 2011 14:38:50 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/#comment-22104</guid>
		<description>Just add this on line 20:

newClassBuild.addMethod('classdeclaration', 'public class ' + className + ' extends FormLetter \n{\n}\n');

This makes the class extend from FormLetter, maybe a bad example, but I think you get the point. Just change the "FormLetter" part to the class you want to extend.

What this means is that if you don´t add a classdeclaration, the ClassBuild class will create a default classdeclaration for you. If you don´t want this, add it manually like any other method.

// Erik</description>
		<content:encoded><![CDATA[<p>Just add this on line 20:</p>
<p>newClassBuild.addMethod(&#8217;classdeclaration&#8217;, &#8216;public class &#8216; + className + &#8216; extends FormLetter \n{\n}\n&#8217;);</p>
<p>This makes the class extend from FormLetter, maybe a bad example, but I think you get the point. Just change the &#8220;FormLetter&#8221; part to the class you want to extend.</p>
<p>What this means is that if you don´t add a classdeclaration, the ClassBuild class will create a default classdeclaration for you. If you don´t want this, add it manually like any other method.</p>
<p>// Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koen</title>
		<link>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/#comment-22101</link>
		<dc:creator>Koen</dc:creator>
		<pubDate>Tue, 26 Apr 2011 13:59:45 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/#comment-22101</guid>
		<description>Not bad!

but how about a derived class?</description>
		<content:encoded><![CDATA[<p>Not bad!</p>
<p>but how about a derived class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/#comment-8358</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:36:24 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/12/22/create-class-and-methods-in-x/#comment-8358</guid>
		<description>Awesome, just what I was looking for!</description>
		<content:encoded><![CDATA[<p>Awesome, just what I was looking for!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

