<?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 set the name of a text box as a variable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218322#M43674</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want the new window to have a few tabs on each tab that will have a text box from which I get a value for the corresponding tab.&lt;BR /&gt;Currently in the program I wrote all the text boxes of the same name and therefore the value is obtained from the text box in the last tab.&lt;BR /&gt;How do I define the name of the text box as a variable?&lt;/P&gt;&lt;P&gt;This is the code I wrote -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Chart_func = function( {Layer},
vlistbox(Outline Box(Layer),
H List Box( Text Box( "enter NEW CL: " ), theBinNumber = Number Edit Box() ),
Button Box( "OK", NEW_CL = theBinNumber &amp;lt;&amp;lt; get)
));

MTK72Mon_TAB = Tab Box(
	"  TIN_LD  ", Chart_func("TIN_LD"),
	"  TIN_HD  ", Chart_func("TIN_HD"),
	"  CU 225A  ", Chart_func("CU_225A"),
	); 

MTK72_Mon_charts = new window ("MTK72 Mon",hlistbox("Title"),	MTK72Mon_TAB);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Jul 2019 12:05:34 GMT</pubDate>
    <dc:creator>shmuelkohanian</dc:creator>
    <dc:date>2019-07-22T12:05:34Z</dc:date>
    <item>
      <title>How to set the name of a text box as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218322#M43674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want the new window to have a few tabs on each tab that will have a text box from which I get a value for the corresponding tab.&lt;BR /&gt;Currently in the program I wrote all the text boxes of the same name and therefore the value is obtained from the text box in the last tab.&lt;BR /&gt;How do I define the name of the text box as a variable?&lt;/P&gt;&lt;P&gt;This is the code I wrote -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Chart_func = function( {Layer},
vlistbox(Outline Box(Layer),
H List Box( Text Box( "enter NEW CL: " ), theBinNumber = Number Edit Box() ),
Button Box( "OK", NEW_CL = theBinNumber &amp;lt;&amp;lt; get)
));

MTK72Mon_TAB = Tab Box(
	"  TIN_LD  ", Chart_func("TIN_LD"),
	"  TIN_HD  ", Chart_func("TIN_HD"),
	"  CU 225A  ", Chart_func("CU_225A"),
	); 

MTK72_Mon_charts = new window ("MTK72 Mon",hlistbox("Title"),	MTK72Mon_TAB);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 12:05:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218322#M43674</guid>
      <dc:creator>shmuelkohanian</dc:creator>
      <dc:date>2019-07-22T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the name of a text box as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218336#M43679</link>
      <description>&lt;P&gt;You need to provide a unique pointer to each of the elements in each of the Tab Boxes.&amp;nbsp; Below is one way to do that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;counter = 0;

Chart_func = function( {Layer},
counter++;
eval(Substitute(
		Expr(
			V List Box(
				Outline Box( Layer ),
				H List Box( Text Box( "enter NEW CL: " ), __theBinNumber__ = Number Edit Box() ),
				Button Box( "OK", __NEW_CL__ = __theBinNumber__ &amp;lt;&amp;lt; get )
			)
		),
	Expr( __theBinNumber__ ), Parse( "theBinNumber" || Char( counter ) ),
	Expr( __NEW_CL__ ), Parse( "NEW_CL" || Char( counter ) )
))
);

MTK72Mon_TAB = Tab Box(
	"  TIN_LD  ", Chart_func("TIN_LD"),
	"  TIN_HD  ", Chart_func("TIN_HD"),
	"  CU 225A  ", Chart_func("CU_225A"),
	); 

MTK72_Mon_charts = new window ("MTK72 Mon",hlistbox("Title"),	MTK72Mon_TAB);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 13:16:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218336#M43679</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-07-22T13:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the name of a text box as a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218528#M43722</link>
      <description>&lt;P&gt;Thank you very much, you really helped me!!!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:06:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-name-of-a-text-box-as-a-variable/m-p/218528#M43722</guid>
      <dc:creator>shmuelkohanian</dc:creator>
      <dc:date>2019-07-23T15:06:43Z</dc:date>
    </item>
  </channel>
</rss>

