<?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: I couldn&#8217;t live without &#8220;Trim Whitespace&#8221;</title>
	<atom:link href="http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/</link>
	<description>an unfiltered stream of data flow consciousness</description>
	<lastBuildDate>Mon, 19 Jul 2010 06:37:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jim Kring</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12083</link>
		<dc:creator>Jim Kring</dc:creator>
		<pubDate>Mon, 30 Jun 2008 13:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12083</guid>
		<description>Ben: &lt;a href=&quot;&lt;a href=&quot;http://wiki.openg.org/Trim_Whitespace&quot; rel=&quot;nofollow&quot;&gt;Trim Whitespace&lt;/a&gt;&quot;&gt;Trim Whitespace&lt;/a&gt; can be useful for treating user-typed input or when trying to parse data from strings.  Usually, it just adds a little insurance that the software will be more robust and work properly.  Typically, you&#039;ll want this after you convert delimited strings to arrays and you&#039;ll want to make sure that you remove any leading and trailing whitespace around the data.  For example, if you have the string:

&quot; Monkey, Fish, Dog , Cat &quot;

You might use &lt;a href=&quot;http://wiki.openg.org/String_to_1D_Array&quot; rel=&quot;nofollow&quot;&gt;String to 1D Array&lt;/a&gt; to convert this into the array:

[&quot; Monkey&quot;, &quot; Fish&quot;, &quot; Dog &quot;, &quot; Cat &quot;]

Passing this array into &lt;a href=&quot;http://wiki.openg.org/Trim_Whitespace&quot; rel=&quot;nofollow&quot;&gt;Trim Whitespace&lt;/a&gt; will return the array we really wanted:

[&quot;Monkey&quot;, &quot;Fish&quot;, &quot;Dog&quot;, &quot;Cat&quot;]

I hope that was a realistic enough example.  It was the best I could do, having not had my first cup of coffee yet, this morning :)</description>
		<content:encoded><![CDATA[<p>Ben: <a href="<a href="http://wiki.openg.org/Trim_Whitespace" rel="nofollow">Trim Whitespace</a>&#8220;>Trim Whitespace can be useful for treating user-typed input or when trying to parse data from strings.  Usually, it just adds a little insurance that the software will be more robust and work properly.  Typically, you&#8217;ll want this after you convert delimited strings to arrays and you&#8217;ll want to make sure that you remove any leading and trailing whitespace around the data.  For example, if you have the string:</p>
<p>&#8221; Monkey, Fish, Dog , Cat &#8220;</p>
<p>You might use <a href="http://wiki.openg.org/String_to_1D_Array" rel="nofollow">String to 1D Array</a> to convert this into the array:</p>
<p>[" Monkey", " Fish", " Dog ", " Cat "]</p>
<p>Passing this array into <a href="http://wiki.openg.org/Trim_Whitespace" rel="nofollow">Trim Whitespace</a> will return the array we really wanted:</p>
<p>["Monkey", "Fish", "Dog", "Cat"]</p>
<p>I hope that was a realistic enough example.  It was the best I could do, having not had my first cup of coffee yet, this morning <img src='http://thinkinging.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12081</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 30 Jun 2008 12:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12081</guid>
		<description>Dumb question time!

What kind of applications do Y&#039;all develop that Trim White Space is so valuable?

I go three months or so between asking myslef &quot;Where did I last see the &quot;Trim White Spae&quot; function?

Just curious,

Ben</description>
		<content:encoded><![CDATA[<p>Dumb question time!</p>
<p>What kind of applications do Y&#8217;all develop that Trim White Space is so valuable?</p>
<p>I go three months or so between asking myslef &#8220;Where did I last see the &#8220;Trim White Spae&#8221; function?</p>
<p>Just curious,</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Kring</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12063</link>
		<dc:creator>Jim Kring</dc:creator>
		<pubDate>Sun, 29 Jun 2008 19:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12063</guid>
		<description>John: I&#039;ll often put this in my user interface code, inside the MyString Value Changed event, before I write the data to the data store.

Aristos: As they say, great minds think alike.  Too bad NI doesn&#039;t use OpenG, internally.  It could probably save you all a lot of time ;)</description>
		<content:encoded><![CDATA[<p>John: I&#8217;ll often put this in my user interface code, inside the MyString Value Changed event, before I write the data to the data store.</p>
<p>Aristos: As they say, great minds think alike.  Too bad NI doesn&#8217;t use OpenG, internally.  It could probably save you all a lot of time <img src='http://thinkinging.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aristos Queue</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12060</link>
		<dc:creator>Aristos Queue</dc:creator>
		<pubDate>Sun, 29 Jun 2008 15:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12060</guid>
		<description>I can end to the rumor that OpenG inspired the one in NI&#039;s palettes. The rumor is false. I and another developer wrote Trim Whitespace.vi. Until this article, I didn&#039;t even know that OpenG had an equivalent. We needed it, so we wrote it. You see, it just happens that Trim Whitespace was a VI that I couldn&#039;t live without either.  :-)</description>
		<content:encoded><![CDATA[<p>I can end to the rumor that OpenG inspired the one in NI&#8217;s palettes. The rumor is false. I and another developer wrote Trim Whitespace.vi. Until this article, I didn&#8217;t even know that OpenG had an equivalent. We needed it, so we wrote it. You see, it just happens that Trim Whitespace was a VI that I couldn&#8217;t live without either.  <img src='http://thinkinging.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john brohan</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12054</link>
		<dc:creator>john brohan</dc:creator>
		<pubDate>Sun, 29 Jun 2008 11:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12054</guid>
		<description>This is truly one of my most frequently used Open G vi&#039;s. Unfortunately I often forget it until a comparison fails in practice and I track it down to an untrimmed string. (The same goes for the toupper and tolower functions too. )

It is much rarer to need to compare two strings exactly than to compare to see if they are what a &#039;regular human being&#039; would consider equal.

Well done 
Keep up the good work.</description>
		<content:encoded><![CDATA[<p>This is truly one of my most frequently used Open G vi&#8217;s. Unfortunately I often forget it until a comparison fails in practice and I track it down to an untrimmed string. (The same goes for the toupper and tolower functions too. )</p>
<p>It is much rarer to need to compare two strings exactly than to compare to see if they are what a &#8216;regular human being&#8217; would consider equal.</p>
<p>Well done<br />
Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Kring</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12049</link>
		<dc:creator>Jim Kring</dc:creator>
		<pubDate>Sat, 28 Jun 2008 23:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12049</guid>
		<description>There&#039;s even a theory going around that it was the OpenG version that inspired the VI that ships with LabVIEW ;)</description>
		<content:encoded><![CDATA[<p>There&#8217;s even a theory going around that it was the OpenG version that inspired the VI that ships with LabVIEW <img src='http://thinkinging.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar Mussa</title>
		<link>http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/comment-page-1/#comment-12048</link>
		<dc:creator>Omar Mussa</dc:creator>
		<pubDate>Sat, 28 Jun 2008 23:49:06 +0000</pubDate>
		<guid isPermaLink="false">http://thinkinging.com/2008/06/28/i-couldnt-live-without-trim-whitespace/#comment-12048</guid>
		<description>I think that the best feature of this VI is that it is polymorphic.  Otherwise, there is a LabVIEW VI &#039;{vi.lib}\Utility\error.llb\Trim Whitespace.vi&#039; that is available (not sure what version it started but I believe it was LabVIEW 8.0).</description>
		<content:encoded><![CDATA[<p>I think that the best feature of this VI is that it is polymorphic.  Otherwise, there is a LabVIEW VI &#8216;{vi.lib}\Utility\error.llb\Trim Whitespace.vi&#8217; that is available (not sure what version it started but I believe it was LabVIEW 8.0).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
