<?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: Extracting fields value in code C#</title><link>https://www.infopathdev.com:443/forums/thread/107742.aspx</link><pubDate>Mon, 22 Aug 2016 14:47:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107742</guid><dc:creator>Varmond</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=107742</wfw:commentRss><description>I was able to find a solution a few days ago,

Thanks a ton Hillary!!!</description></item><item><title>Re: Extracting fields value in code C#</title><link>https://www.infopathdev.com:443/forums/thread/107666.aspx</link><pubDate>Mon, 15 Aug 2016 15:20:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107666</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=107666</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You&amp;#39;ll need to convert those two strings to integers (or decimals, whatever they are) in order to compare with greater than / less than. I use TryParse() usually. You can find samples here: &lt;a href="https://msdn.microsoft.com/en-us/library/f02979c7(v=vs.110).aspx"&gt;https://msdn.microsoft.com/en-us/library/f02979c7(v=vs.110).aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Extracting fields value in code C#</title><link>https://www.infopathdev.com:443/forums/thread/107658.aspx</link><pubDate>Tue, 09 Aug 2016 21:40:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107658</guid><dc:creator>Varmond</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=107658</wfw:commentRss><description>Continuation of code</description></item><item><title>Extracting fields value in code C#</title><link>https://www.infopathdev.com:443/forums/thread/107657.aspx</link><pubDate>Tue, 09 Aug 2016 21:28:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107657</guid><dc:creator>Varmond</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107657.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=107657</wfw:commentRss><description>I&amp;#39;m trying to extract a controls fields value in C#, here is the following code:

public void CTRL128_14_Clicked(object sender, ClickedEventArgs e)
        {
                         

                //Declare our variables
                string fileName;
                XPathNavigator nameNode;
                //Set the values. Replace &amp;quot;/my:myFields/my:textField&amp;quot; with the xpath to the field that has the value you want as the file name
                nameNode = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Counter_Awareness&amp;quot;, NamespaceManager);
                fileName = nameNode.Value;

                string fileName2;
                XPathNavigator nameNode2;
                //Set the values. Replace &amp;quot;/my:myFields/my:textField&amp;quot; with the xpath to the field that has the value you want as the file name
                nameNode2 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:SumAll_Counters1.1&amp;quot;, NamespaceManager);
                fileName2 = nameNode2.Value;
            


        {
            if (fileName &amp;gt;= fileName2)
            {
                DialogResult result = MessageBox.Show(&amp;quot;Awareness is not accompanied by another solution that is implemented, do you still want to submit this form?&amp;quot;, &amp;quot;Warning&amp;quot;,
                MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (result == DialogResult.Yes)
                {
                    
                    DataConnection spConn =
                    DataConnections[&amp;quot;SharePoint Library Submit&amp;quot;];
                    spConn.Execute();
                    Application.ActiveWindow.Close(); // Esto cierra la aplicacion
                                    
                }
                else if (result == DialogResult.No)
                {
                    //code for No
                }
                
            }
        }
        }


It&amp;#39;s suppose to compare two values and if filename one is greater then filename2, a messagebox is suppose to appear for the user. I keep getting problems with the operator saying that: &amp;quot;Error	1	Operator &amp;#39;&amp;gt;=&amp;#39; cannot be applied to operands of type &amp;#39;string&amp;#39; and &amp;#39;string&amp;#39;. I tried using integer values but no luck.</description></item></channel></rss>