<?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 How to Grab Items Inside a List Box and pass them to a simple List in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37009#M21728</link>
    <description>&lt;P&gt;I have a List Box that contains "n" items and I don't have control how many items are there. What I want is to simply grab each item and insert them to a list (for more processing). I thought I could simply pass a message "Select All" but I found out it does not work as how I imagined it to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of looping through each item in the list box and have each item "Set Selected" (so that I can Get Selected afterwards). My problem is that I don't know how to determine the number of items in the List Box. I'm not also sure if this idea works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any inputs. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 23:57:13 GMT</pubDate>
    <dc:creator>csoon1</dc:creator>
    <dc:date>2017-03-09T23:57:13Z</dc:date>
    <item>
      <title>How to Grab Items Inside a List Box and pass them to a simple List</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37009#M21728</link>
      <description>&lt;P&gt;I have a List Box that contains "n" items and I don't have control how many items are there. What I want is to simply grab each item and insert them to a list (for more processing). I thought I could simply pass a message "Select All" but I found out it does not work as how I imagined it to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of looping through each item in the list box and have each item "Set Selected" (so that I can Get Selected afterwards). My problem is that I don't know how to determine the number of items in the List Box. I'm not also sure if this idea works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any inputs. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 23:57:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37009#M21728</guid>
      <dc:creator>csoon1</dc:creator>
      <dc:date>2017-03-09T23:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Grab Items Inside a List Box and pass them to a simple List</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37010#M21729</link>
      <description>&lt;P&gt;a listbox() or a&amp;nbsp;v/hlistbox()? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;if it's a listbox() you can just listbox &amp;lt;&amp;lt; Get Items. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's a vlistbox and you're using Jmp 13 you can do nitems(vlistbox) and loop through them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you're using jmp12- you have to do something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to here(1);
new window("Test", 
	vlb = vlistbox(
		textbox("1"),
		textbox("1"),
		textbox("1"),
		textbox("1"),
		textbox("1"),
		textbox("1"),
		textbox("1"),
		textbox("1"),
	)
);
l = {};
for(box = vlb&amp;lt;&amp;lt;child, !isempty(box), box = box &amp;lt;&amp;lt; Sib, 
	insert into(l, box)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2017 02:07:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37010#M21729</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2017-03-10T02:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Grab Items Inside a List Box and pass them to a simple List</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37029#M21746</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;. Thank you very much for a thorough answer. "Get Items" did the job for me as it was a ListBox and I am using JMP13.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 17:00:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Grab-Items-Inside-a-List-Box-and-pass-them-to-a-simple/m-p/37029#M21746</guid>
      <dc:creator>csoon1</dc:creator>
      <dc:date>2017-03-10T17:00:27Z</dc:date>
    </item>
  </channel>
</rss>

