<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Extracting Numbers from a field</title><link>https://www.infopathdev.com:443/forums/thread/96697.aspx</link><pubDate>Thu, 27 Mar 2014 08:40:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96697</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=96697</wfw:commentRss><description>&lt;p&gt;Hi roadman1977,&lt;/p&gt;&lt;p&gt;Welcome to InfopathDev&lt;/p&gt;&lt;p&gt;I would suggest using a formula such as the one below. What it does is that it returns the last two characters of a string, and from there use a rule which is triggered by a condtion that if the populated field is not equal to numbers, then set a certain field to a value of 0.&lt;br /&gt;&lt;br /&gt;substring(&lt;strong&gt;field1&lt;/strong&gt;, string-length(&lt;strong&gt;field1&lt;/strong&gt;) - 1, 2)&lt;/p&gt;&lt;p&gt;where &lt;strong&gt;field1&lt;/strong&gt; is the username field.&lt;/p&gt;&lt;p&gt;Please let me know if this helps.&lt;/p&gt;</description></item><item><title>Extracting Numbers from a field</title><link>https://www.infopathdev.com:443/forums/thread/96544.aspx</link><pubDate>Thu, 20 Mar 2014 14:30:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96544</guid><dc:creator>roadman1977</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96544.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=96544</wfw:commentRss><description>&lt;p&gt;I have a username field that contains both letters and numbers.&amp;nbsp; I have another field (number type) that extracts the numbers from the username field.&amp;nbsp; The username field contains a variable number of characters.&amp;nbsp; The numbers can be located in any position in the username field.&amp;nbsp; If the last two characters in the username field do not contain numbers I want to make the number type field equal to 0.&lt;/p&gt;
&lt;p&gt;Is this possible??&lt;/p&gt;</description></item></channel></rss>