<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath Equivalent of left()</title><link>https://www.infopathdev.com:443/forums/thread/52641.aspx</link><pubDate>Thu, 11 Mar 2010 15:51:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52641</guid><dc:creator>mjphelan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52641</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;A perfect solution to an annoying little problem.. Many Thanks ;o)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Infopath Equivalent of left()</title><link>https://www.infopathdev.com:443/forums/thread/52627.aspx</link><pubDate>Thu, 11 Mar 2010 14:22:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52627</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52627.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52627</wfw:commentRss><description>&lt;p&gt;The XPath equivalent of left(&lt;em&gt;field&lt;/em&gt;, &lt;em&gt;x&lt;/em&gt;) is substring(&lt;em&gt;field&lt;/em&gt;, 1, &lt;em&gt;x&lt;/em&gt;), and the XPath equivalent of &lt;em&gt;a&lt;/em&gt; &amp;amp; &lt;em&gt;b&lt;/em&gt; [ &amp;amp; &lt;em&gt;c&lt;/em&gt; ...] is concat(&lt;em&gt;a&lt;/em&gt;, &lt;em&gt;b&lt;/em&gt; [, c...]), so the formula you&amp;#39;re going for is something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;concat(substring(firstfield, 1, 1), secondfield)&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Infopath Equivalent of left()</title><link>https://www.infopathdev.com:443/forums/thread/52623.aspx</link><pubDate>Thu, 11 Mar 2010 11:19:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52623</guid><dc:creator>mjphelan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52623</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve spent a few hours searching the forums, and I have a feeling that while it seems very simple it&amp;#39;s goign to be&amp;nbsp; otherwise..&lt;/p&gt;&lt;p&gt;I&amp;#39;m looking for a simple Infopath equivalent of the VBA LEFT() function.&lt;/p&gt;&lt;p&gt;Simply put, I need to concatenate the fist character of one field and a second field in an automated manner.&lt;/p&gt;&lt;p&gt;In VBA the code would be&lt;/p&gt;&lt;p&gt;strvalue = left(firstfield,1) &amp;amp; secondfield &lt;/p&gt;&lt;p&gt;If at all possible I&amp;#39;d like to keep this as a &amp;quot;rule&amp;quot; or &amp;quot;Default Value&amp;quot; within the form if at all possible, to make it as easy as possible for others to update/change the form if need be,&lt;/p&gt;&lt;p&gt;Many Thanks&lt;/p&gt;&lt;p&gt;Mark P&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>