<?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 setup Combo box list? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640274#M83758</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I wanna make a list using combo box, showing ".csv" only.&lt;/P&gt;&lt;P&gt;How to setup the list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my code,&lt;/P&gt;&lt;P&gt;All files are listed up on selected directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Load file = New Window( "New Window",
	&amp;lt;&amp;lt;modal(),
	&amp;lt;&amp;lt;ReturnResult,
	&amp;lt;&amp;lt;on close(
	), 

	H List Box(
		Text Box( "Choose directory" ),
		Spacer Box( size( 10, 10 ) ),
		BB1 = Button Box( "Load file", 
			address1 = Pick Directory();
				
			If( address1 == "",
				file1 &amp;lt;&amp;lt; set text( "" ), //else if
				If( address1 != "",
					file1 &amp;lt;&amp;lt; set text( address1 )
				)
			);
		)
	), 	
	

	Panel Box( "",
		V List Box( Text Box( "Directory path :" ), Spacer Box( size( 300, 10 ) ), file1 = Text Box( "" ) )
	)
);
	
path = address1;
address1 = Files In Directory( address1 );
			
	
nw = New Window( "Pick CSV Files",
	Panel Box( "List",
		Lineup Box( N Col( 2 ),
			Text Box( "1st:" ),
			cb1 = Combo Box( address1 ),		
			Button Box( "OK" );	
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Jun 2023 00:02:09 GMT</pubDate>
    <dc:creator>LBrian</dc:creator>
    <dc:date>2023-06-11T00:02:09Z</dc:date>
    <item>
      <title>How to setup Combo box list?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640274#M83758</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I wanna make a list using combo box, showing ".csv" only.&lt;/P&gt;&lt;P&gt;How to setup the list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my code,&lt;/P&gt;&lt;P&gt;All files are listed up on selected directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Load file = New Window( "New Window",
	&amp;lt;&amp;lt;modal(),
	&amp;lt;&amp;lt;ReturnResult,
	&amp;lt;&amp;lt;on close(
	), 

	H List Box(
		Text Box( "Choose directory" ),
		Spacer Box( size( 10, 10 ) ),
		BB1 = Button Box( "Load file", 
			address1 = Pick Directory();
				
			If( address1 == "",
				file1 &amp;lt;&amp;lt; set text( "" ), //else if
				If( address1 != "",
					file1 &amp;lt;&amp;lt; set text( address1 )
				)
			);
		)
	), 	
	

	Panel Box( "",
		V List Box( Text Box( "Directory path :" ), Spacer Box( size( 300, 10 ) ), file1 = Text Box( "" ) )
	)
);
	
path = address1;
address1 = Files In Directory( address1 );
			
	
nw = New Window( "Pick CSV Files",
	Panel Box( "List",
		Lineup Box( N Col( 2 ),
			Text Box( "1st:" ),
			cb1 = Combo Box( address1 ),		
			Button Box( "OK" );	
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 00:02:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640274#M83758</guid>
      <dc:creator>LBrian</dc:creator>
      <dc:date>2023-06-11T00:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Combo box list?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640332#M83762</link>
      <description>&lt;P&gt;All you need to do is to loop backwards through the address1 list and remove all of the entries that are not .csv files.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = N Items( address1 ), i &amp;gt;= 1, i--,
	If( Word( -1, address1[i], "." ) != "csv",
		Remove From( address1, i, 1 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See the Scripting Index for definition and examples of any of the above used functions.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 10:08:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640332#M83762</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-08T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Combo box list?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640575#M83794</link>
      <description>&lt;P&gt;It works very well!&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 23:53:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640575#M83794</guid>
      <dc:creator>LBrian</dc:creator>
      <dc:date>2023-06-08T23:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup Combo box list?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640608#M83795</link>
      <description>&lt;P&gt;Also if you have JMP16+, you can use Filter Each&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;address2 = Filter Each({filename}, Files In Directory(address1),
	Ends With(filename, ".csv");
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 05:05:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-setup-Combo-box-list/m-p/640608#M83795</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-09T05:05:24Z</dc:date>
    </item>
  </channel>
</rss>

