<?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 pass a listbox selection properly to select where? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13863#M13024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The list brackets won't be a problem if you use Contains() instead of ==, which also would support selection of multiple items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Contains&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;cho&lt;/SPAN&gt;,&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;Stage&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For for character columns the below command should fill a list box with unique column values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mon &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;List Box&lt;/SPAN&gt;&lt;STRONG&gt;(:&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;Stage&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;get values&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 14:57:49 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2015-08-17T14:57:49Z</dc:date>
    <item>
      <title>How can I pass a listbox selection properly to select where?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13861#M13022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm very new in JMP and JSL.&lt;/P&gt;&lt;P&gt;How can I pass a listbox selection properly to select where?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;It looks,&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt; brackets {} are the &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preferences(Excel Has Labels(1), Excel Selection(1));&lt;/P&gt;&lt;P&gt;dt= Open( Pick File( " "));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Window( " ",&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;Modal,&lt;/P&gt;&lt;P&gt;vlist box(&lt;/P&gt;&lt;P&gt;Text Box("Select ..."),&lt;/P&gt;&lt;P&gt;mon = listbox({"Jan 15", "Mar 15", "May 15"}),&lt;/P&gt;&lt;P&gt;Button Box( "OK", cho = mon&amp;lt;&amp;lt; get selected),&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;show (cho);&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :Stage == cho);&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; invert row selection;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; delete rows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to fill a Listbox with all values from a named column (Stage) without doubles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:36:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13861#M13022</guid>
      <dc:creator>uwe_hiss</dc:creator>
      <dc:date>2015-08-17T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass a listbox selection properly to select where?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13862#M13023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your case "cho" is a list, since you could make multiple selections.&amp;nbsp; I've modified your code so that a) you can only choose one item, and b) it pulls the item from the list for proper use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Open&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Pick File&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;" "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;New Window&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;" "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;STRONG&gt;Modal&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;V List Box&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Text Box&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"Select ..."&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;List Box&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"Jan 15"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"Mar 15"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"May 15"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;}&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; max selected&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Button Box&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"OK"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; cho_list &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; mon &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG style="color: navy; font-family: 'Courier New';"&gt;get selected&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;cho &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; cho_list&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Show&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; cho &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Select Where&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;Stage &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; cho &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG style="color: navy; font-family: 'Courier New';"&gt;invert row selection&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG style="color: navy; font-family: 'Courier New';"&gt;delete rows&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 13:15:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13862#M13023</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2015-08-17T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass a listbox selection properly to select where?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13863#M13024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The list brackets won't be a problem if you use Contains() instead of ==, which also would support selection of multiple items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Contains&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;cho&lt;/SPAN&gt;,&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;Stage&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For for character columns the below command should fill a list box with unique column values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mon &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;List Box&lt;/SPAN&gt;&lt;STRONG&gt;(:&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;Stage&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;get values&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 14:57:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13863#M13024</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-08-17T14:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass a listbox selection properly to select where?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13864#M13025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for both solutions, it works fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;At moment the&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;if clauses &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;makes&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;headache&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;My Idea: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;If the selected item (in List Box) == "Baseline" do not invert the selected rows on table but delete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Segoe UI'; font-size: 14px;"&gt;Otherwise invert and delete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//!&lt;/P&gt;&lt;P&gt;clear log();&lt;/P&gt;&lt;P&gt;clear globals();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt= Open( Pick File(" "));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Window( " ", &amp;lt;&amp;lt;Modal,&lt;/P&gt;&lt;P&gt;V List Box(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Text Box("Select ..."),&lt;/P&gt;&lt;P&gt;&amp;nbsp; mon = List Box(:Stage &amp;lt;&amp;lt; get values),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Button Box( "OK", cho = mon &amp;lt;&amp;lt; get selected),&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where(Contains(cho, :Stage));&lt;/P&gt;&lt;P&gt;if (&lt;/P&gt;&lt;P&gt;&amp;nbsp; cho == "Baseline", dt &amp;lt;&amp;lt; delete rows,&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; invert row selection;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; delete rows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control Chart Builder(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Show Control Panel( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Variables( Y( :Assay ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chart(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Position( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 5( 1 ), Test 6( 1 ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chart( Position( 2 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; SendToReport(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dispatch( {}, "Control Chart Builder" , FrameBox, {Marker Size( 2 )} ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dispatch( {}, "Control Chart Builder" , FrameBox( 2 ), {Marker Size( 2 )} )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 13:06:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13864#M13025</guid>
      <dc:creator>uwe_hiss</dc:creator>
      <dc:date>2015-08-18T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pass a listbox selection properly to select where?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13865#M13026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the end parenthesis is misplaced. Move it to after the "else" commands&lt;/P&gt;&lt;P style="font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;cho &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;"Baseline"&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;delete rows&lt;/STRONG&gt;,&lt;/P&gt;&lt;P style="font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;invert row selection&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;delete rows&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 16:52:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-pass-a-listbox-selection-properly-to-select-where/m-p/13865#M13026</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-08-18T16:52:52Z</dc:date>
    </item>
  </channel>
</rss>

