<?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 can I append to this Col List Box? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526600#M75064</link>
    <description>&lt;P&gt;Col List Box is used for Columns. If you want to add names in the name column, you should use List Box:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

col = {};
col[1] = column(dt, "name");

New Window( "Col List Box Example", 
	LstBox = List Box(, width( 250 )),
		for(i=1, i&amp;lt;= N Rows(dt), i++,
			LstBox &amp;lt;&amp;lt; append(Eval(col[1][i]));
		),
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1658854985922.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44330i4E3310F760F84A94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1658854985922.png" alt="jthi_0-1658854985922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 17:03:12 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-07-26T17:03:12Z</dc:date>
    <item>
      <title>How can I append to this Col List Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526569#M75063</link>
      <description>&lt;P&gt;This code is supposed to add each name into the list box but it doesn't work. Has it got to do with the data type?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you're wondering why im using the 1st element, its because I wanted to populate other columns within that list for E.G -&amp;gt; col[2] = column(dt, "height");&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

col = {};
col[1] = column(dt, "name");

New Window( "Col List Box Example", 
	LstBox = Col List Box(, width( 250 )),
		for(i=1, i&amp;lt;= N Rows(dt), i++,
			LstBox &amp;lt;&amp;lt; append(Eval(col[1][i]));
		),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:05:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526569#M75063</guid>
      <dc:creator>Andyon98</dc:creator>
      <dc:date>2023-06-09T17:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I append to this Col List Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526600#M75064</link>
      <description>&lt;P&gt;Col List Box is used for Columns. If you want to add names in the name column, you should use List Box:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

col = {};
col[1] = column(dt, "name");

New Window( "Col List Box Example", 
	LstBox = List Box(, width( 250 )),
		for(i=1, i&amp;lt;= N Rows(dt), i++,
			LstBox &amp;lt;&amp;lt; append(Eval(col[1][i]));
		),
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1658854985922.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44330i4E3310F760F84A94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1658854985922.png" alt="jthi_0-1658854985922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:03:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526600#M75064</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-26T17:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I append to this Col List Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526603#M75065</link>
      <description>&lt;P&gt;The issue is that you are using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col List Box()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and attempting to place non column names into the list.(i.e. Katie, Louise, etc. are not column names)&lt;/P&gt;
&lt;P&gt;To do what you want, you need to use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;List Box()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

col = {};
col[1] = column(dt, "name");

New Window( "List Box Example", 
	LstBox = List Box(, width( 250 )),
		for(i=1, i&amp;lt;= N Rows(dt), i++,
			LstBox &amp;lt;&amp;lt; append(Eval(col[1][i]));
		),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:13:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-append-to-this-Col-List-Box/m-p/526603#M75065</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-26T17:13:25Z</dc:date>
    </item>
  </channel>
</rss>

