<?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: N Col using textbox value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462790#M70756</link>
    <description>&lt;P&gt;You could either use Number Edit Box and then &amp;lt;&amp;lt; Get or with Text Edit Box use &amp;lt;&amp;lt; Get Text and then convert that to number with Num()&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);

//Text Edit Box
User_Input = New Window("N Col",
	&amp;lt;&amp;lt;modal(),
	H List Box(Text Box("Enter Column No:  "), Col_Num_teb = Text Edit Box("", &amp;lt;&amp;lt;set width(200)), ),
	Button Box("OK", col_num = col_num_teb &amp;lt;&amp;lt; get text),
);
show(Num(col_num));

//number edit box
User_Input = New Window("N Col",
	&amp;lt;&amp;lt;modal(),
	H List Box(Text Box("Enter Column No:  "), neb = Number Edit Box(., &amp;lt;&amp;lt;set width(50)), ),
	Button Box("OK", col_num = neb &amp;lt;&amp;lt; get),
);
show(col_num);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Feb 2022 06:15:24 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-02-22T06:15:24Z</dc:date>
    <item>
      <title>N Col using textbox value</title>
      <link>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462771#M70755</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to create a user input box that will determine the N Col for my line up box. I tried this script&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "N Col", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "Enter Column No:  " ),
		Col_Num_teb = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),
	),
	Button Box( "OK", 
		col_num = col_num_teb &amp;lt;&amp;lt; get();
	),
);

lb = LineUpBox( N Col(col_num) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried entering 4 but ends up having 2 columns. How can I correctly get the N Col for my line up box?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:22:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462771#M70755</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-11T11:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: N Col using textbox value</title>
      <link>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462790#M70756</link>
      <description>&lt;P&gt;You could either use Number Edit Box and then &amp;lt;&amp;lt; Get or with Text Edit Box use &amp;lt;&amp;lt; Get Text and then convert that to number with Num()&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);

//Text Edit Box
User_Input = New Window("N Col",
	&amp;lt;&amp;lt;modal(),
	H List Box(Text Box("Enter Column No:  "), Col_Num_teb = Text Edit Box("", &amp;lt;&amp;lt;set width(200)), ),
	Button Box("OK", col_num = col_num_teb &amp;lt;&amp;lt; get text),
);
show(Num(col_num));

//number edit box
User_Input = New Window("N Col",
	&amp;lt;&amp;lt;modal(),
	H List Box(Text Box("Enter Column No:  "), neb = Number Edit Box(., &amp;lt;&amp;lt;set width(50)), ),
	Button Box("OK", col_num = neb &amp;lt;&amp;lt; get),
);
show(col_num);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:15:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462790#M70756</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-02-22T06:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: N Col using textbox value</title>
      <link>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462791#M70757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Unless you convert your text/string into a number, the LineUpBox call will not work. Try replacing the Text Edit Box () with a Number Edit Box&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "N Col", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "Enter Column No:  " ),
		Col_Num_neb = Number Edit Box ( 1 ), // You can replace "1" by any other initial value
	),
	Button Box( "OK", 
		col_num = col_num_neb &amp;lt;&amp;lt; get; // You don't need the parentheses here
	),
);

lb = LineUpBox( N Col(col_num) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:22:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/N-Col-using-textbox-value/m-p/462791#M70757</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2022-02-22T06:22:15Z</dc:date>
    </item>
  </channel>
</rss>

