<?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: select/deselect file in list box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472384#M71702</link>
    <description>&lt;P&gt;To unselect a selected entry in a List Box(), simply hold down the CNTL key and then click on the selected entry.&amp;nbsp; &amp;nbsp;It will then change to unselected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning your JSL....you seem to be guessing at the syntax to use.&amp;nbsp; What you need to do to find out what messages are available to a given object(in this case a List Box) is to open the Scripting Index, and go to the entry for the specific object you are using.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1648051909371.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41077iFC5C7D5A63820A09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1648051909371.png" alt="txnelson_0-1648051909371.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There you will see that the Set Selected message is used for both selecting and unselecting&amp;nbsp; &amp;nbsp;Also, the Set Selection message uses the Index for the selected so you need to use the Get Selected Index rather than the Get Selected&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 16:14:49 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-03-23T16:14:49Z</dc:date>
    <item>
      <title>select/deselect file in list box</title>
      <link>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472338#M71698</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;qual_list= Files In Directory( "C:\Users\mlachhab\Documents\20220309 - Exercice Scripting Magid\REPERTOIRE A" );


nw= New Window( "Ex1",
	V List Box(
		Outline Box( "Choix_Du_Dossier",&amp;lt;&amp;lt;BackgroundColor( 19 );
			dt=list Box( qual_list);
		),
			
			obj= dt &amp;lt;&amp;lt; get selected;	
				If(obj &amp;lt;&amp;lt; Selected , obj &amp;lt;&amp;lt; Deselect);
	),
	
	
	Lineup Box( N Col( 2 ), spacing( 20 ),
		
		Button Box( "OK",
			nw &amp;lt;&amp;lt; Close Window ),
		
		
		Button Box( "ANNULER",
			nw &amp;lt;&amp;lt; Close Window ),
	),
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello, I want to select/deselect files in my List box, but when I select one file,&amp;nbsp;I can't deselect it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:14:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472338#M71698</guid>
      <dc:creator>NetflixCrow956</dc:creator>
      <dc:date>2023-06-09T18:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: select/deselect file in list box</title>
      <link>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472378#M71700</link>
      <description>&lt;P&gt;Your code seems fine to me.&amp;nbsp; click to select, ctrl+click to de-select (on a PC). Probably cmd+click on a Mac.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:02:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472378#M71700</guid>
      <dc:creator>mikedriscoll</dc:creator>
      <dc:date>2022-03-23T16:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: select/deselect file in list box</title>
      <link>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472384#M71702</link>
      <description>&lt;P&gt;To unselect a selected entry in a List Box(), simply hold down the CNTL key and then click on the selected entry.&amp;nbsp; &amp;nbsp;It will then change to unselected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning your JSL....you seem to be guessing at the syntax to use.&amp;nbsp; What you need to do to find out what messages are available to a given object(in this case a List Box) is to open the Scripting Index, and go to the entry for the specific object you are using.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1648051909371.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41077iFC5C7D5A63820A09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1648051909371.png" alt="txnelson_0-1648051909371.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There you will see that the Set Selected message is used for both selecting and unselecting&amp;nbsp; &amp;nbsp;Also, the Set Selection message uses the Index for the selected so you need to use the Get Selected Index rather than the Get Selected&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:14:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/select-deselect-file-in-list-box/m-p/472384#M71702</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-23T16:14:49Z</dc:date>
    </item>
  </channel>
</rss>

