<?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: How to activate a button box with &amp;quot;desired script&amp;quot; from the text box. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428425#M67770</link>
    <description>&lt;P&gt;It works!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your kindly help :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 01:04:24 GMT</pubDate>
    <dc:creator>jemg</dc:creator>
    <dc:date>2021-10-20T01:04:24Z</dc:date>
    <item>
      <title>How to activate a button box with "desired script" from the text box.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428128#M67749</link>
      <description>&lt;P&gt;As shown below, when the user inputs the desired script into the text box(&lt;STRONG&gt;ex. Distribution( Continuous Distribution( Column( :X) ) );&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;and then executes the button box, how can the corresponding script be executed as analysis? Thanks for letting us know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the script to be executed as analysis when the user inputs the desired script into the text box and then executes the button box as shown below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I execute the text entered in the text box immediately with a button click?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CT_MG_0-1634630731843.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36821i7A9C6764ACB4CFBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CT_MG_0-1634630731843.png" alt="CT_MG_0-1634630731843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though I stored the desired script as a variable using get text() and write(), it is not executed as an analysis.&lt;BR /&gt;I would really appreciate it if you could tell me how to solve it.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:38:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428128#M67749</guid>
      <dc:creator>jemg</dc:creator>
      <dc:date>2023-06-10T23:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate a button box with "desired script" from the text box.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428173#M67751</link>
      <description>&lt;P&gt;Use the Eval(Parse()) combination of functions to execute a text string of JSL&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1634639254977.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36822iD57B684EC87B840E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1634639254977.png" alt="txnelson_0-1634639254977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1634639283641.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36823i243488D9F12739D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1634639283641.png" alt="txnelson_1-1634639283641.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Enter Script",
	V List Box(
		tb = Text Edit Box( "", &amp;lt;&amp;lt;set width( 400 ), &amp;lt;&amp;lt;set script( theScript = tb &amp;lt;&amp;lt; get text ) ),
		OKButton = Button Box( "OK", Eval( Parse( theScript ) ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 10:28:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428173#M67751</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-19T10:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate a button box with "desired script" from the text box.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428174#M67752</link>
      <description>&lt;P&gt;You need to look at the 'Parse()' function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
txt = "x+y";
scr = Parse(txt);

x = 2; y = 3;
Print(scr);
Print(Eval(scr));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It feels like typing in a script this way would be quite error prone.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 10:29:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428174#M67752</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-10-19T10:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate a button box with "desired script" from the text box.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428425#M67770</link>
      <description>&lt;P&gt;It works!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your kindly help :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 01:04:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-activate-a-button-box-with-quot-desired-script-quot-from/m-p/428425#M67770</guid>
      <dc:creator>jemg</dc:creator>
      <dc:date>2021-10-20T01:04:24Z</dc:date>
    </item>
  </channel>
</rss>

