<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Inputbox -Cancel button - Causes failure in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8206811#M85438</link>
    <description>&lt;P&gt;After you cancel the input box the rest of the code continues to run. Add a line to check that your variable captured something from the input box.&lt;/P&gt;&lt;PRE&gt;If Answer=vbYes Then 
myparam = InputBox("Enter a valid Dia &amp;lt;=OutPipeClearanceDia", "LinerDiaMachined", "Ø")
If myparam = "" Then Exit Sub '&amp;lt;===Added this line
MessageBox.Show("Value=" &amp;amp; myparam, "The value I entered")
LinerDiaMachined=myparam
LinerMachining=True
Feature.IsActive("Extrusion4_LinerMachining")=True
iLogicVb.UpdateWhenDone=True&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Aug 2018 14:21:48 GMT</pubDate>
    <dc:creator>clutsa</dc:creator>
    <dc:date>2018-08-17T14:21:48Z</dc:date>
    <item>
      <title>Inputbox -Cancel button - Causes failure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8206027#M85437</link>
      <description>&lt;P&gt;Hi Forum.&lt;/P&gt;&lt;P&gt;Could someone provide me some help to a simpel solution, to avoid failure, when cancel button is hit?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;P&gt;BRLMCHKD&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 07:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8206027#M85437</guid>
      <dc:creator>BRLMCHKD</dc:creator>
      <dc:date>2018-08-17T07:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inputbox -Cancel button - Causes failure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8206811#M85438</link>
      <description>&lt;P&gt;After you cancel the input box the rest of the code continues to run. Add a line to check that your variable captured something from the input box.&lt;/P&gt;&lt;PRE&gt;If Answer=vbYes Then 
myparam = InputBox("Enter a valid Dia &amp;lt;=OutPipeClearanceDia", "LinerDiaMachined", "Ø")
If myparam = "" Then Exit Sub '&amp;lt;===Added this line
MessageBox.Show("Value=" &amp;amp; myparam, "The value I entered")
LinerDiaMachined=myparam
LinerMachining=True
Feature.IsActive("Extrusion4_LinerMachining")=True
iLogicVb.UpdateWhenDone=True&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:21:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8206811#M85438</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-08-17T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inputbox -Cancel button - Causes failure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8210679#M85439</link>
      <description>&lt;P&gt;Hi Clutsa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it does just the trick that I was asking for, JUST PERFECT&lt;/P&gt;&lt;P&gt;I do not quite understand the 'Exit Sub',&amp;nbsp; because I thought there&lt;/P&gt;&lt;P&gt;should be stated a 'Sub Main () prior to this, which is not the case.&lt;/P&gt;&lt;P&gt;Could you provide me a simple explanation to this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;KR BRLMCHKD&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 10:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8210679#M85439</guid>
      <dc:creator>BRLMCHKD</dc:creator>
      <dc:date>2018-08-20T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inputbox -Cancel button - Causes failure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8211019#M85440</link>
      <description>&lt;P&gt;To be honest I knew that's how I would exit a macro in VBA so I tried it and it worked. My best understanding is that iLogic is actually VBA but they have some extra code going on that allows you to omit bits and pieces and iLogic fills those bits in for you. So even though you never declare a Class or Sub it assumes them for you... but I don't know if I'm assuming that or I read it somewhere. &amp;nbsp;&lt;/P&gt;&lt;P&gt;My "simple explanation" is that computers have little wizards that sit inside them and cast magic spells to make everything run... but that's probably not the answer your looking for&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 13:11:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8211019#M85440</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-08-20T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inputbox -Cancel button - Causes failure</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8211093#M85441</link>
      <description>&lt;P&gt;Hi Clutsa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No it was not quite the answer I was looking for, but thank you for your effort &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;&lt;P&gt;BRLMCHKD&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 13:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inputbox-cancel-button-causes-failure/m-p/8211093#M85441</guid>
      <dc:creator>BRLMCHKD</dc:creator>
      <dc:date>2018-08-20T13:38:45Z</dc:date>
    </item>
  </channel>
</rss>

