<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Function and Code Help?</title><link>https://www.infopathdev.com:443/forums/thread/61706.aspx</link><pubDate>Sun, 28 Nov 2010 06:38:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61706</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61706.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61706</wfw:commentRss><description>&lt;p&gt;Each of the places where you see &lt;strong&gt;translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;)&lt;/strong&gt; is producing a temporary copy of the original value with all the parentheses, dashes, periods, and spaces removed.&amp;nbsp; Then each &lt;strong&gt;substring()&lt;/strong&gt; around those is taking that stripped-down value and extracting a&amp;nbsp;certain portion of it.&amp;nbsp;&amp;nbsp; So &lt;strong&gt;substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 1, 3)&lt;/strong&gt; produces the first &lt;strong&gt;3&lt;/strong&gt; characters of the field value after all the parentheses, dashes, periods and spaces are removed, and &lt;strong&gt;substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 4, 3)&lt;/strong&gt; produces the &lt;strong&gt;3&lt;/strong&gt; characters of this stripped-down value, starting at the &lt;strong&gt;4&lt;/strong&gt;th character.&amp;nbsp; The outer &lt;strong&gt;concat()&lt;/strong&gt; function strings these extracted parts together, interspersing them with formatting characters, in this case &lt;strong&gt;&amp;quot;(&amp;quot;&lt;/strong&gt;, &lt;strong&gt;&amp;quot;) &amp;quot;&lt;/strong&gt;, and&amp;nbsp;&lt;strong&gt;&amp;quot;-&amp;quot;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Does that make it clearer for you?&lt;/p&gt;</description></item><item><title>Function and Code Help?</title><link>https://www.infopathdev.com:443/forums/thread/61698.aspx</link><pubDate>Sat, 27 Nov 2010 06:18:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61698</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61698</wfw:commentRss><description>&lt;p&gt;I read on a forum how to make a phone number come back in a particular format using the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;(&amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 1, 3), &amp;quot;) &amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 4, 3), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 7, 4))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My problem is that I dont understand this and more so , I need to do it for a zipcode as well. To make a long story short, I want to understand it and I would like some help by explaining how i can do the above from scratch for Zipcodes...and maybe emails. Thanks&lt;/p&gt;</description></item></channel></rss>