<?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: Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107489.aspx</link><pubDate>Thu, 21 Jul 2016 01:35:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107489</guid><dc:creator>meissen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107489.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107489</wfw:commentRss><description>Thanks Hilary - that was 100% the issue. I created a new rule which adds all of those &amp;quot;Elements&amp;quot; fields together and that field changing is now my trigger for the VB code. It&amp;#39;s working again! I have a feeling I&amp;#39;m really pushing some limits of InfoPath with this form and am worried I&amp;#39;m going to hit a wall where my automation is not going to work anymore... especially with the rules of how many changes can be made without user interaction. Knock on wood so far so good. Next big hurdle will be getting the code-enabled form published to SharePoint!</description></item><item><title>Re: Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107486.aspx</link><pubDate>Wed, 20 Jul 2016 19:33:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107486</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107486</wfw:commentRss><description>Mystery solved! I see the same thing with rules - where there is confusion as to why a rule didn&amp;#39;t fire &amp;amp; it turns out the field w/ the rule didn&amp;#39;t change. Yah, reset that field after your code completes - maybe go with a try/catch/finally and reset in the finally so it is always ready to go again. :)</description></item><item><title>Re: Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107485.aspx</link><pubDate>Wed, 20 Jul 2016 19:21:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107485</guid><dc:creator>meissen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107485.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107485</wfw:commentRss><description>Well I feel like an idiot lol. The rule that triggers the VB code updates all of the fields that are then imported into variables, including GCCX, but what I failed to take into consideration is that 0 being &amp;quot;updated&amp;quot; to 0 the 2nd time probably doesn&amp;#39;t register as a &amp;quot;change&amp;quot; after all... which would then explain why the breakpoint doesn&amp;#39;t &amp;quot;hit.&amp;quot; Thanks for pointing me in the right direction - looks like I need to change the trigger for the vb code to run.</description></item><item><title>Re: Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107483.aspx</link><pubDate>Wed, 20 Jul 2016 17:03:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107483</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107483</wfw:commentRss><description>So this runs when my:myFields/my:HiddenFields/my:GCCXElements changes? Are you certain the field is changing again?</description></item><item><title>Re: Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107413.aspx</link><pubDate>Wed, 20 Jul 2016 03:05:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107413</guid><dc:creator>meissen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107413</wfw:commentRss><description>Here&amp;#39;s the VB code -- no matter where in the public sub I put the breakpoint it fails to &amp;quot;hit&amp;quot; the 2nd time through.&lt;br /&gt;&lt;br /&gt;
It&amp;#39;s pretty simple code that&amp;#39;s just gathering field values from various points in the form, then looping through the code to add/remove sections.</description></item><item><title>Re: Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107411.aspx</link><pubDate>Tue, 19 Jul 2016 22:00:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107411</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107411</wfw:commentRss><description>Weird - I&amp;#39;ve never seen that. Where&amp;#39;s your breakpoint? What&amp;#39;s the code? I&amp;#39;m wondering if you have some conditions so that the break point isn&amp;#39;t reached the second time. You can always use a message box to show the error message, if you have to (if this is a browser form, change the compatibility temporarily, or put the error message in a form field).</description></item><item><title>Debugging code in Visual Studio - Breakpoint only hits the 1st time?</title><link>https://www.infopathdev.com:443/forums/thread/107410.aspx</link><pubDate>Tue, 19 Jul 2016 20:13:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107410</guid><dc:creator>meissen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107410</wfw:commentRss><description>Hi all,&lt;br /&gt;


Trying to debug some VB code I&amp;#39;ve written for a field&amp;#39;s Change event. The 2nd time the code fires I get an error but the error window is screwed up and you can&amp;#39;t actually read the error message in the window, it&amp;#39;s cut off.
&lt;br /&gt;&lt;br /&gt;


I set up a break point in the code for the field&amp;#39;s Change event and it hits the first time I change the field&amp;#39;s value -- I can step through the code perfectly. But then when Visual Studio returns me to the form and I change the value a 2nd time the breakpoint does NOT hit even though the code attempts to execute and errors out. 
&lt;br /&gt;&lt;br /&gt;

Any ideas on how to hit the breakpoint every time the code fires? I *am* running as debug state and using the &amp;quot;Start&amp;quot; button in Visual Studio. Like I said - the breakpoint works the first time I change the field, but the 2nd time I change the field it doesn&amp;#39;t break. Please advise.</description></item></channel></rss>