<?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: Duplicate data</title><link>https://www.infopathdev.com:443/forums/thread/64659.aspx</link><pubDate>Mon, 28 Feb 2011 15:31:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64659</guid><dc:creator>arif@HP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64659</wfw:commentRss><description>&lt;pre&gt;&lt;span style="COLOR:blue;"&gt;Ok then. Well there are only 10 numbers available to pick from (0 - 9)&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="COLOR:blue;"&gt;Perhaps make a loop which scans each number, from each field before the form submits. &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="COLOR:blue;"&gt;You can do this by splitting each character as its own string in an array, then checking it against the previous number(s).&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="COLOR:blue;"&gt;When creating your loop, use t&lt;/span&gt;he CancelableArgs event in an if statement to decide if your form submits your data or not.&lt;/pre&gt;&lt;pre&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;     if (numbers are repeated....) MessageBox.Show(&lt;/font&gt;&lt;span style="COLOR:#a31515;"&gt;&amp;quot;Please ensure each field does not contain duplicate numbers.&amp;quot;&lt;/span&gt;&lt;font color="#000000"&gt;);
      e.CancelableArgs.Cancel = &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;true&lt;/span&gt;&lt;font color="#000000"&gt;;
   &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;else&lt;/span&gt;
&lt;font color="#000000"&gt;      e.CancelableArgs.Message = &lt;/font&gt;&lt;span style="COLOR:#a31515;"&gt;&amp;quot;Submit succeeded.&amp;quot;&lt;/span&gt;&lt;font color="#000000"&gt;;
&lt;/font&gt;&lt;/span&gt;&lt;/pre&gt;</description></item><item><title>Re: Duplicate data</title><link>https://www.infopathdev.com:443/forums/thread/64656.aspx</link><pubDate>Mon, 28 Feb 2011 14:46:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64656</guid><dc:creator>tafavorite</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64656</wfw:commentRss><description>&lt;p&gt;Either or. Just as long as that after the user enters the number and they move onto the next field that it would alert them that its a double number and that they cannot submit the form if they do not change the double number.&lt;/p&gt;</description></item><item><title>Re: Duplicate data</title><link>https://www.infopathdev.com:443/forums/thread/64655.aspx</link><pubDate>Mon, 28 Feb 2011 14:08:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64655</guid><dc:creator>arif@HP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64655.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64655</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you want your textbox to detect a duplicate number as soon as the user enters it? Or are you validating the whole text box after the user has finished inputting their numbers?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Duplicate data</title><link>https://www.infopathdev.com:443/forums/thread/64587.aspx</link><pubDate>Fri, 25 Feb 2011 13:51:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64587</guid><dc:creator>tafavorite</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64587</wfw:commentRss><description>&lt;p&gt;I am working with a form that has 19 text boxes that are set to whole number entry only. I need a way to validate that the user has entered a number in those boxes but has not duplicated that number. So I cant have more than one &amp;quot;1&amp;quot; in the boxes but all boxes can have a 1 placed anywhere in them. The user must use all 19 numbers in their data entry. Been looking around here and google and have come up with no viable solution. The count() function and preceding-sibiling and following-sibiling rules just dont seem to be working correctly. Anyone have ideas. Thanks in advance.&lt;/p&gt;</description></item></channel></rss>