<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NextEqualZero.com &#187; Quick Tips</title>
	<atom:link href="http://www.nextequalzero.com/category/quick-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nextequalzero.com</link>
	<description>A technical eye on Microsoft Dynamics NAV</description>
	<lastBuildDate>Fri, 05 Feb 2010 17:30:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quick Tip: Adding a CR/LF to Dataports</title>
		<link>http://www.nextequalzero.com/2009/08/adding-a-crlf-to-dataports/</link>
		<comments>http://www.nextequalzero.com/2009/08/adding-a-crlf-to-dataports/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:30:43 +0000</pubDate>
		<dc:creator>Ian Crocker</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[ascii 13 10]]></category>

		<guid isPermaLink="false">http://www.nextequalzero.com/?p=450</guid>
		<description><![CDATA[Need to add a carriage return/line feed at the end of a Dataport?
You can do this by adding the following code in the OnPostDataport() trigger where Ascii is a variable defined as type Char
Ascii := 13;
CurrFile.WRITE(Ascii);
Ascii := 10;
CurrFile.WRITE(Ascii);
The first two lines write a carriage return to the exported file.
The final two lines write a line feed.
]]></description>
			<content:encoded><![CDATA[<p>Need to add a carriage return/line feed at the end of a Dataport?</p>
<p><span id="more-450"></span>You can do this by adding the following code in the <strong>OnPostDataport()</strong> trigger where <strong>Ascii</strong><strong> </strong>is a variable defined as type <strong>Char</strong></p>
<p style="padding-left: 30px;"><code>Ascii := 13;<br />
CurrFile.WRITE(Ascii);<br />
Ascii := 10;<br />
CurrFile.WRITE(Ascii);</code></p>
<p>The first two lines write a carriage return to the exported file.</p>
<p>The final two lines write a line feed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nextequalzero.com/2009/08/adding-a-crlf-to-dataports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Standard text codes</title>
		<link>http://www.nextequalzero.com/2009/06/standard-text-codes/</link>
		<comments>http://www.nextequalzero.com/2009/06/standard-text-codes/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 01:00:40 +0000</pubDate>
		<dc:creator>Ian Crocker</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[standard-text]]></category>

		<guid isPermaLink="false">http://www.nextequalzero.com/?p=54</guid>
		<description><![CDATA[Enter a single question mark in any editable Text or Code field, then tab away from the field.
The Standard Text Codes form will be launched and you can select a text.
The code which makes this happen can be found in Codeunit 1 in a function called MakeText.  
You could in theory hijack this function and [...]]]></description>
			<content:encoded><![CDATA[<p>Enter a single question mark in any editable Text or Code field, then tab away from the field.</p>
<p>The <code>Standard Text Codes</code> form will be launched and you can select a text.</p>
<p>The code which makes this happen can be found in <code>Codeunit 1</code> in a function called <code>MakeText</code>.  </p>
<p>You could in theory hijack this function and code your own escape characters for your own purposes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nextequalzero.com/2009/06/standard-text-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Listing option string values</title>
		<link>http://www.nextequalzero.com/2008/07/listing-option-string-values/</link>
		<comments>http://www.nextequalzero.com/2008/07/listing-option-string-values/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 13:34:52 +0000</pubDate>
		<dc:creator>Ian Crocker</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.nextequalzero.com/?p=46</guid>
		<description><![CDATA[Ever been writing a piece of code where you need to reference a specific value in an Option type field but either couldn&#8217;t remember the value you want to use or simply want to see a list of all the existing options?
One way to do this would be to open the table, select the field [...]]]></description>
			<content:encoded><![CDATA[<p>Ever been writing a piece of code where you need to reference a specific value in an Option type field but either couldn&#8217;t remember the value you want to use or simply want to see a list of all the existing options?</p>
<p>One way to do this would be to open the table, select the field in question and look at the values in the <code>OptionString</code> property.</p>
<p>A faster way is to write your code as far as possible, then, using an arbitrary value such as <code>x</code>, place this where you would normally put the option string value.</p>
<p>In the example below I want to check the document type of a <code>Cust. Ledger Entry</code> record:</p>
<pre lang="pascal">IF CustLedgEntry."Document Type" = CustLedgEntry."Document Type"::x THEN</pre>
<p>Hit <code>F11</code> to compile the code.  </p>
<p>It won&#8217;t compile because <code>x</code> is not a valid option string value.  </p>
<p>However, listed in the error message returned by the compiler will be a handy reminder of all the existing option string values for the field:</p>
<p><a href="http://www.nextequalzero.com/wp-content/uploads/2008/07/compile-error-x-is-not-an-option.jpg"><img class="alignnone size-medium wp-image-48" title="compile-error-x-is-not-an-option" src="http://www.nextequalzero.com/wp-content/uploads/2008/07/compile-error-x-is-not-an-option-300x107.jpg" alt="" width="300" height="107" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nextequalzero.com/2008/07/listing-option-string-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
