<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: format a string and add a space.</title><link>https://www.infopathdev.com:443/forums/thread/101009.aspx</link><pubDate>Wed, 04 Feb 2015 02:43:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101009</guid><dc:creator>Bre Huston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=101009</wfw:commentRss><description>&lt;p&gt;Hello Dave,&lt;/p&gt;&lt;p&gt;An easier method may be to use 2 helper fields and concatenate them in a third field. The first field would be limited to 4 characters and the second would be limited to 3. Then set actions that when both fields are not blank, set the third field to concat(field1, &amp;quot; &amp;quot;, field2). I would still use the translate function on both fields so that you get the corrected values. &lt;/p&gt;&lt;p&gt;Hope that helps!&lt;br /&gt;Bre&amp;nbsp;&lt;/p&gt;</description></item><item><title>format a string and add a space.</title><link>https://www.infopathdev.com:443/forums/thread/100985.aspx</link><pubDate>Tue, 03 Feb 2015 07:59:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100985</guid><dc:creator>davedmonds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100985.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=100985</wfw:commentRss><description>&lt;p&gt;Hi, I have a field where he user enters a UK Vehicle Registration number in the format AANN(space)AAA where A is a letter and N is a number. It will strictly remain in this format. &lt;/p&gt;&lt;p&gt;Some users will enter the data without the space and this will cause lookup rules to fail. &lt;/p&gt;&lt;p&gt;Using concat and substring, I am trying to search the string for a space at exactly the 5th character and if one is not present, insert&amp;nbsp;it.&lt;/p&gt;&lt;p&gt;I&amp;nbsp;am also using translate to force the&amp;nbsp;string into&amp;nbsp;caps as this also is required for the lookup.&lt;/p&gt;&lt;p&gt;Here is what I have for the translate() section, I just don&amp;#39;t know whereto start for the spaces.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;translate(Vehicle Registration, &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;)&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>