<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Contains Statement</title><link>https://www.infopathdev.com:443/forums/thread/24111.aspx</link><pubDate>Thu, 01 Nov 2007 15:31:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24111</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24111</wfw:commentRss><description>&lt;p&gt;Been on Vacation and getting caught up but if you have not gotten this yet.&lt;/p&gt;
&lt;p&gt;The contains function would return a True or False which would not probably be the value. I would think you would want if(contains(summaryfield.text, &amp;quot;.&amp;quot;));&lt;/p&gt;</description></item><item><title>Contains Statement</title><link>https://www.infopathdev.com:443/forums/thread/23923.aspx</link><pubDate>Tue, 23 Oct 2007 12:12:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23923</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23923</wfw:commentRss><description>&lt;p&gt;I am looking for code to check and see if a field contains a &amp;quot;.&amp;quot;&amp;nbsp; I am using IP 2007 and Jscript.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My code is something like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;var summaryField = XDocment.DOM.selectSingleNode(&amp;quot;group1/my:field1&amp;quot;);&lt;/p&gt;&lt;p&gt;Then i want to do an if statement and that is where i need the contains statement something like&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  if(summaryField.text == contains(summaryField.text, &amp;#39;.&amp;#39;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That isnt the right syntax, but thats what im looking for.&amp;nbsp; Just something to check and see if that field contains a &amp;#39;.&amp;quot;.&amp;nbsp; Any ideas? Thanks&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>