<?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: Extracting last 5 characters</title><link>https://www.infopathdev.com:443/forums/thread/41430.aspx</link><pubDate>Fri, 08 May 2009 14:03:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41430</guid><dc:creator>Samir Farid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41430</wfw:commentRss><description>&lt;p&gt;Hi Dean,&lt;/p&gt;
&lt;p&gt;You can get the last five positions of the Employee number by using a combination of substring and string-length:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/strong&gt; substring(EmployeeNumberfield; string-length(EmployeeNumberfield) - 4; 5)&lt;/p&gt;
&lt;p&gt;If you only want&amp;nbsp;to show the employee number&amp;nbsp;that are 5 positions long, then&amp;nbsp;it will be much easier to do that in code with an if-statement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;- Samir -&lt;/p&gt;</description></item><item><title>Extracting last 5 characters</title><link>https://www.infopathdev.com:443/forums/thread/41429.aspx</link><pubDate>Fri, 08 May 2009 13:35:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41429</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41429</wfw:commentRss><description>&lt;p&gt;I am using the GetUserProfileName webservice to the UserName (which in our case is the NetworkID). we have some employees with a network ID that is 5 digits (xxxxx=their employee number) and other employees have a network ID that contains a 3 character prefix before their employee number (P00xxxxx). I want to show the 5 digit employee number on my form. I thought that I&amp;#39;d be able to use the substring functoin, but I can&amp;#39;t figure out how to do this. I thought that this would be simple, but I&amp;#39;m having a brain cramp and would appreciate some help.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Dean&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>