<?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: Reference portion of array/list indirectly in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reference-portion-of-array-list-indirectly/m-p/766460#M94652</link>
    <description>&lt;P&gt;Try changing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtJ:dtJnames(r+13)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtJ:dtJnames[r+13]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and so on (you use square brackets with indices)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mylist = {"a", "b", "c"};

Show(mylist[2::3]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Jun 2024 17:08:26 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-06-17T17:08:26Z</dc:date>
    <item>
      <title>Reference portion of array/list indirectly</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-portion-of-array-list-indirectly/m-p/766444#M94651</link>
      <description>&lt;P&gt;Using JMP 17.0.0, Windows 10.&lt;/P&gt;&lt;P&gt;I've been unsuccessful at finding documentation on what I want to do, and it seems not to be as easy as I thought it would be...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to update a table (dtJ) with columns from another table (dtN), but not define precisely how many columns to add, as the amount of columns to be added may differ each time my For loop runs.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( r = 1, r &amp;lt;= N Items( dtlist ), r++,
	dtN = Open( myPath || mySiteanalysis || dtlist[r] || myFilepost );
	dtNnames = dtN &amp;lt;&amp;lt; Get Column Names ();
	dtNnamesv = N Items(dtNnames);

	dtJ &amp;lt;&amp;lt; Update(
		With( dtN ),
		Match Columns( dtJ:dtJnames(r+13) = dtN:dtNnames(1) ),
		Add Columns from Update Table( dtN:dtNnames(2::dtNnamesv) ),
		Replace Columns in Main Table( None )
	);
	Close( dtN, nosave );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The columns to add from dtN should start at column 2 through the last column in dtN.&amp;nbsp; Apparently,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;2::dtNnamesv&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;nor other variations of it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance to this rather easy question would be greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 15:59:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-portion-of-array-list-indirectly/m-p/766444#M94651</guid>
      <dc:creator>GreenisBTFL</dc:creator>
      <dc:date>2024-06-17T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reference portion of array/list indirectly</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-portion-of-array-list-indirectly/m-p/766460#M94652</link>
      <description>&lt;P&gt;Try changing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtJ:dtJnames(r+13)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtJ:dtJnames[r+13]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and so on (you use square brackets with indices)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mylist = {"a", "b", "c"};

Show(mylist[2::3]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2024 17:08:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-portion-of-array-list-indirectly/m-p/766460#M94652</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-17T17:08:26Z</dc:date>
    </item>
  </channel>
</rss>

