<?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: Stop script executing</title><link>https://www.infopathdev.com:443/forums/thread/14432.aspx</link><pubDate>Wed, 29 Mar 2006 20:19:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14432</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14432</wfw:commentRss><description>If your code is inside of a JScript function, can't you just issue a return statement to end the processing of the function?&lt;br /&gt;&lt;br /&gt;Or am I oversimplifying?</description></item><item><title>Re: Stop script executing</title><link>https://www.infopathdev.com:443/forums/thread/14431.aspx</link><pubDate>Wed, 29 Mar 2006 06:24:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14431</guid><dc:creator>cosmorocket</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14431</wfw:commentRss><description>I have Infopath form that contains some fields with data. Also I have Indesign application that have a blank document. &lt;br /&gt;I use this to use indesign as activex object:&lt;br /&gt;var id = new ActiveXObject("Indesign.Application");&lt;br /&gt;&lt;br /&gt;I use this construction to determine if a document is open in indesign:&lt;br /&gt;try {var myDoc = activeDocument}&lt;br /&gt;catch (error) {XDocument.UI.Alert("no open files in indesign");}&lt;br /&gt;Here i have some code to run if there is a document opened.&lt;br /&gt;So if there is no opened documents in indesign, I need to stop script running.</description></item><item><title>Re: Stop script executing</title><link>https://www.infopathdev.com:443/forums/thread/14430.aspx</link><pubDate>Wed, 29 Mar 2006 06:15:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14430</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14430</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;If you don't say what is the error and &lt;br /&gt;what is your script I dont think that we can help you.&lt;br /&gt;&lt;br /&gt;So post your script and say what is really your problem!&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;++</description></item><item><title>Stop script executing</title><link>https://www.infopathdev.com:443/forums/thread/12825.aspx</link><pubDate>Wed, 29 Mar 2006 05:33:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12825</guid><dc:creator>cosmorocket</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12825</wfw:commentRss><description>I have a button in my form. When the button is pushed, a script runs. There an error can be generated by the script so I need to stop script executing if it is. How can I do this?</description></item></channel></rss>