<?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: placeholder for the last returned value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/569055#M77961</link>
    <description>&lt;P&gt;Interesting idea, I kudo'd your wish list item.&lt;/P&gt;&lt;P&gt;I usually work around the absence of this by nesting more things into each other...but it can become difficult to read:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 437, 413 ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
CapturedXML = gb &amp;lt;&amp;lt; XPath( "//AxisBox" )[1] &amp;lt;&amp;lt; get xml; //Like so&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Nov 2022 14:41:18 GMT</pubDate>
    <dc:creator>pauldeen</dc:creator>
    <dc:date>2022-11-14T14:41:18Z</dc:date>
    <item>
      <title>placeholder for the last returned value</title>
      <link>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568571#M77924</link>
      <description>&lt;P&gt;In Mathematica, one can use "%" as a placeholder for the last returned value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1668342422218.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47282iB1340CFD61E53CC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1668342422218.png" alt="hogi_0-1668342422218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something similar in JMP?&lt;/P&gt;&lt;P&gt;Then one could use the fact that a reference to an object is returned by the function which creates the object.&lt;/P&gt;&lt;P&gt;Could help during debugging:&lt;/P&gt;&lt;P&gt;Run single lines of the original code, add some test code and get a quick reference to a created object via the placeholder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 437, 413 ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
// during debugging:
gb = %;(gb &amp;lt;&amp;lt; XPath( "//AxisBox" )) &amp;lt;&amp;lt; select;&lt;BR /&gt;&lt;BR /&gt;// or even better:
gb &amp;lt;&amp;lt; get XML();
New Window("xml", %)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:02:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568571#M77924</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-09T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder for the last returned value</title>
      <link>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568699#M77935</link>
      <description>&lt;P&gt;No, there is no way to retrieve the value. You could move the "gb =" to just before the "dt&amp;lt;&amp;lt;GraphBuilder" to capture it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 17:32:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568699#M77935</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-11-13T17:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder for the last returned value</title>
      <link>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568706#M77936</link>
      <description>&lt;P&gt;I posted a wish :&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/JSL-debugging-placeholder-for-last-returned-value/idi-p/568705" target="_blank"&gt;https://community.jmp.com/t5/JMP-Wish-List/JSL-debugging-placeholder-for-last-returned-value/idi-p/568705&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and added another example in the code above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see if other users are also interested ...&lt;/P&gt;&lt;P&gt;sure: If you had this &lt;EM&gt;comfort&lt;/EM&gt; in Mathematica, you kind of miss it in JMP.&lt;BR /&gt;Could be that you don't miss it if you didn't have it :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 17:49:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568706#M77936</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-13T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder for the last returned value</title>
      <link>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/569055#M77961</link>
      <description>&lt;P&gt;Interesting idea, I kudo'd your wish list item.&lt;/P&gt;&lt;P&gt;I usually work around the absence of this by nesting more things into each other...but it can become difficult to read:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 437, 413 ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
CapturedXML = gb &amp;lt;&amp;lt; XPath( "//AxisBox" )[1] &amp;lt;&amp;lt; get xml; //Like so&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Nov 2022 14:41:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/569055#M77961</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2022-11-14T14:41:18Z</dc:date>
    </item>
  </channel>
</rss>

