<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Ho do I use the substring function</title><link>https://www.infopathdev.com:443/forums/thread/66946.aspx</link><pubDate>Tue, 31 May 2011 04:50:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66946</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66946</wfw:commentRss><description>&lt;a href="http://www.w3.org/TR/xpath/#function-substring"&gt;http://www.w3.org/TR/xpath/#function-substring&lt;/a&gt; 
&lt;p&gt;In this case, I think the formula you want is:&lt;/p&gt;
&lt;p&gt;concat(substring(firstName, 1, 1), &amp;#39; &amp;#39;, lastName))&lt;/p&gt;</description></item><item><title>Ho do I use the substring function</title><link>https://www.infopathdev.com:443/forums/thread/66943.aspx</link><pubDate>Tue, 31 May 2011 02:39:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66943</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66943.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66943</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Everyone,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I want to take data out of 2 text boxes, and insert parts of it into a 3rd data source.&lt;/p&gt;&lt;p&gt;For example I want to take the first letter of the firstName data source, and take the entire contents of the lastName data source and put it into the thirds data source loginName.&lt;/p&gt;&lt;p&gt;So data would be:&lt;/p&gt;&lt;p&gt;First Name &amp;quot;joe&amp;quot;, last name &amp;quot;Blogs&amp;quot;&lt;/p&gt;&lt;p&gt;I want the form to then automatically fill out the loginName data source to make it &amp;quot;jblogs&amp;quot;&lt;/p&gt;&lt;p&gt;I understand that I would need to use the substring, substring before/after functions, but I can&amp;#39;t figure out how it is supposed to work.&lt;/p&gt;&lt;p&gt;Can someone hhelp me please.&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>