<?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 Storing object references in a list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932243#M108871</link>
    <description>&lt;P&gt;Has anyone ever noticed when you store multiple object referances in a list you won't actually get the object referance....?&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Namesdefault to here(1);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder( Variables( X( :height ), Y( :weight ) ), Elements( Points( X, Y ), Smoother( X, Y ) ) );

list = {};
list2 = {};

Insert Into(list, {gb, "test", "test2"});

Insert Into(list2, gb);

show(list[1]);

show(list2[1]);

show(gb);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output:&lt;BR /&gt;list[1] = gb;&lt;BR /&gt;list2[1] = Graph Builder[];&lt;BR /&gt;gb = Graph Builder[];&lt;BR /&gt;&lt;BR /&gt;The first list gives you the variable name. Not usefull to make calls on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 01:35:37 GMT</pubDate>
    <dc:creator>aharro</dc:creator>
    <dc:date>2026-02-24T01:35:37Z</dc:date>
    <item>
      <title>Storing object references in a list</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932243#M108871</link>
      <description>&lt;P&gt;Has anyone ever noticed when you store multiple object referances in a list you won't actually get the object referance....?&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Namesdefault to here(1);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder( Variables( X( :height ), Y( :weight ) ), Elements( Points( X, Y ), Smoother( X, Y ) ) );

list = {};
list2 = {};

Insert Into(list, {gb, "test", "test2"});

Insert Into(list2, gb);

show(list[1]);

show(list2[1]);

show(gb);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output:&lt;BR /&gt;list[1] = gb;&lt;BR /&gt;list2[1] = Graph Builder[];&lt;BR /&gt;gb = Graph Builder[];&lt;BR /&gt;&lt;BR /&gt;The first list gives you the variable name. Not usefull to make calls on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 01:35:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932243#M108871</guid>
      <dc:creator>aharro</dc:creator>
      <dc:date>2026-02-24T01:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Storing object references in a list</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932268#M108872</link>
      <description>&lt;P&gt;Use &lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/list-functions.shtml?os=win&amp;amp;source=application#ww5012485" target="_blank" rel="noopener"&gt;Eval List() &lt;/A&gt;(&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/evaluate-lists.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Data Structures &amp;gt; Lists in JSL Scripts &amp;gt; Evaluate Lists&lt;/A&gt;&amp;nbsp;)&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");
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y), Smoother(X, Y))
);

list = {};
list2 = {};

Insert Into(list, Eval List({gb, "test", "test2"}));
&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, 24 Feb 2026 06:21:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932268#M108872</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-02-24T06:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Storing object references in a list</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932460#M108902</link>
      <description>&lt;P&gt;You made that look too easy. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 00:12:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-object-references-in-a-list/m-p/932460#M108902</guid>
      <dc:creator>aharro</dc:creator>
      <dc:date>2026-02-25T00:12:56Z</dc:date>
    </item>
  </channel>
</rss>

