<?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: Casting problem</title><link>https://www.infopathdev.com:443/forums/thread/9052.aspx</link><pubDate>Mon, 13 Feb 2006 22:43:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9052</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9052</wfw:commentRss><description>I think you'll want to do something like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;if( Int32.Parse( thisXDocument.DOM.selectSingleNode( "_XPATH_" ).text ) &amp;gt; 10 )&lt;br /&gt;{&lt;br /&gt;   //field is greater than 10&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://support.microsoft.com/?kbid=835454&gt;http://support.microsoft.com/?kbid=835454&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Casting problem</title><link>https://www.infopathdev.com:443/forums/thread/5350.aspx</link><pubDate>Mon, 13 Feb 2006 15:22:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5350</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5350.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5350</wfw:commentRss><description>I have a InfoPath Text Box type Integer. On the OnAfterChange Event of this field I want to check if the value is &amp;gt; 10 .&lt;br /&gt;&lt;br /&gt;How can I do it with code in C#!!!!&lt;br /&gt;I get casting error.</description></item></channel></rss>