<?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: Returning larger number</title><link>https://www.infopathdev.com:443/forums/thread/60045.aspx</link><pubDate>Thu, 07 Oct 2010 06:01:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60045</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60045</wfw:commentRss><description>&lt;p&gt;For your first question, InfoPath provies a &lt;strong&gt;max()&lt;/strong&gt; function, which should be the simplest way to do what you&amp;#39;re asking.&amp;nbsp; Have you tried that?&lt;/p&gt;
&lt;p&gt;Here is a formula to conditionally append a leading zero to a single digit number:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;concat(substring(&amp;#39;0&amp;#39;, 1, 2 - string-length(&lt;strong&gt;&lt;u&gt;number&lt;/u&gt;&lt;/strong&gt;)), &lt;u&gt;&lt;strong&gt;number&lt;/strong&gt;)&lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Returning larger number</title><link>https://www.infopathdev.com:443/forums/thread/60044.aspx</link><pubDate>Thu, 07 Oct 2010 05:40:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60044</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60044</wfw:commentRss><description>&lt;p&gt;well the rule you have written is indeed an infinite loop because&lt;/p&gt;&lt;p&gt;let us say the original value is 4, 4 is less than 9 so you put the new value as 04 but 04 is also less than 9, so you put the new value as 004.......&lt;/p&gt;&lt;p&gt;a way around this would be to check the length of the field also. Check the attachment&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Returning larger number</title><link>https://www.infopathdev.com:443/forums/thread/59380.aspx</link><pubDate>Tue, 28 Sep 2010 10:07:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59380</guid><dc:creator>haigaiz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59380.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59380</wfw:commentRss><description>Thanks for that, can&amp;#39;t believe I didn&amp;#39;t think of that! I&amp;#39;m very new to InfoPath..
I have another question, do you know of a way to do a conditional concat?
I want to concat &amp;quot;0&amp;quot; to the start of a number in a textfield if the number is less than 9. 
So I have a rule setup doing just that, but when I try to preview the form I get a message saying it&amp;#39;s an infinite loop - do you know any way around this?

Thank you so much for your help.</description></item><item><title>Re: Returning larger number</title><link>https://www.infopathdev.com:443/forums/thread/59368.aspx</link><pubDate>Tue, 28 Sep 2010 05:12:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59368</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59368.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59368</wfw:commentRss><description>&lt;p&gt;write simple rules on the two text boxes to compare the two and perform the action that you need to do. To be on safer side you can change the data type fo the text fields to &amp;quot;whole Number&amp;quot;&lt;/p&gt;</description></item><item><title>Returning larger number</title><link>https://www.infopathdev.com:443/forums/thread/59361.aspx</link><pubDate>Mon, 27 Sep 2010 22:41:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59361</guid><dc:creator>haigaiz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59361</wfw:commentRss><description>Hi guys,
This is probably an easy one, but does anyone know how to compare two numbers in text fields and return the larger one?

Cheers</description></item></channel></rss>