<?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: How do I trim a textfield string that contains numbers &amp; characters to only use the numbers for a calculation?</title><link>https://www.infopathdev.com:443/forums/thread/88295.aspx</link><pubDate>Fri, 22 Mar 2013 12:19:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88295</guid><dc:creator>supermanKelz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88295.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88295</wfw:commentRss><description>&lt;p&gt;Ok part 2 time.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve gotten the translate function to replace the parts of the string that I want, works great thanks!&amp;nbsp; However, I&amp;#39;m having trouble figuring out the formula to perform the translate on a multiple selection list box.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Currently, I&amp;#39;m using this formula to keep track of ALL selected options in the list box: eval(eval(field1, &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&amp;nbsp; This formula produces: Option-1; Option-2; Option-3.&amp;nbsp; Now what I want to do is change the formula a bit so that it incorporates the TRANSLATE function to remove the text (&amp;quot;Option-&amp;quot; in this case), and sum the remaining numerical values (1, 2, 3) so that &amp;quot;6&amp;quot; is stored in a field (the field that holds the formula as default value).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for your help again!&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;JenniferLindsay:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Hi supermanKelz,&lt;/p&gt;
&lt;p&gt;You can extract the text only by removing the numbers with the translate function:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;translate(&lt;u&gt;myUserInput&lt;/u&gt;,&amp;quot;0123456789&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;And you can extract the numbers only by removing the letters and the dash with another call to the translate function:&lt;/p&gt;
&lt;p&gt;translate(&lt;u&gt;myUserInput&lt;/u&gt;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWYXZabcdefghijklmnopqrstuvwyxz-&amp;quot;,&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: How do I trim a textfield string that contains numbers &amp; characters to only use the numbers for a calculation?</title><link>https://www.infopathdev.com:443/forums/thread/88290.aspx</link><pubDate>Fri, 22 Mar 2013 00:08:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88290</guid><dc:creator>supermanKelz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88290</wfw:commentRss><description>Thanks so much, about to try it out now!</description></item><item><title>Re: How do I trim a textfield string that contains numbers &amp; characters to only use the numbers for a calculation?</title><link>https://www.infopathdev.com:443/forums/thread/88288.aspx</link><pubDate>Thu, 21 Mar 2013 22:34:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88288</guid><dc:creator>JenniferLindsay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88288.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88288</wfw:commentRss><description>&lt;p&gt;Hi supermanKelz,&lt;/p&gt;
&lt;p&gt;You can extract the text only by removing the numbers with the translate function:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;translate(&lt;u&gt;myUserInput&lt;/u&gt;,&amp;quot;0123456789&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;And you can extract the numbers only by removing the letters and the dash with another call to the translate function:&lt;/p&gt;
&lt;p&gt;translate(&lt;u&gt;myUserInput&lt;/u&gt;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWYXZabcdefghijklmnopqrstuvwyxz-&amp;quot;,&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;/p&gt;</description></item><item><title>How do I trim a textfield string that contains numbers &amp; characters to only use the numbers for a calculation?</title><link>https://www.infopathdev.com:443/forums/thread/88268.aspx</link><pubDate>Thu, 21 Mar 2013 16:48:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88268</guid><dc:creator>supermanKelz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88268</wfw:commentRss><description>&lt;p&gt;Hey all!&amp;nbsp; This seemed like a newbie question so here it goes!&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am trying to take user input from a dropdown menu that has custom list items that have a TEXT display name and TEXT+NUMERIC value.&amp;nbsp; For example, if a user selects &amp;quot;one time&amp;quot; from the dropdown, then Execution field holds the value &amp;quot;one-time50&amp;quot;.&amp;nbsp; I&amp;#39;m doing this because the selections need to hold a text value and a numeric value for calculation and summary display purposes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Now, what I want to do with the execution field that has the value of &amp;quot;one-time50&amp;quot; is to have a text field display &amp;quot;one-time&amp;quot; and another field holds &amp;quot;50&amp;quot; that can be added to a formula for a calculation.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any suggestions???&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;</description></item></channel></rss>