<?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 Printing variables to display box/window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Printing-variables-to-display-box-window/m-p/428775#M67814</link>
    <description>&lt;P&gt;I have a script that calculates some slopes and offsets based on a large data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the slopes and offsets are calculated I want to output them to a new display box or window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has been a couple years since I have really done much scripting with JMP so I'm fairly rusty, so I'm sure the code below is far from correct.&lt;/P&gt;&lt;P&gt;How can I output the variables to some kind of pop out window?&lt;/P&gt;&lt;P&gt;My variables are Slope_1C, Offset_1C, Slope_2C, Offset_2C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;New Window ("Slopes and Offsets", &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("1C Slope = ", Slope_1C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("1C Offset =", Offset_1C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("2C Slope =", Slope_2C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("2C Offset =", Offset_2C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:03:15 GMT</pubDate>
    <dc:creator>dustincurry</dc:creator>
    <dc:date>2023-06-09T18:03:15Z</dc:date>
    <item>
      <title>Printing variables to display box/window</title>
      <link>https://community.jmp.com/t5/Discussions/Printing-variables-to-display-box-window/m-p/428775#M67814</link>
      <description>&lt;P&gt;I have a script that calculates some slopes and offsets based on a large data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the slopes and offsets are calculated I want to output them to a new display box or window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has been a couple years since I have really done much scripting with JMP so I'm fairly rusty, so I'm sure the code below is far from correct.&lt;/P&gt;&lt;P&gt;How can I output the variables to some kind of pop out window?&lt;/P&gt;&lt;P&gt;My variables are Slope_1C, Offset_1C, Slope_2C, Offset_2C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;New Window ("Slopes and Offsets", &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("1C Slope = ", Slope_1C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("1C Offset =", Offset_1C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("2C Slope =", Slope_2C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Text box("2C Offset =", Offset_2C),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:03:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Printing-variables-to-display-box-window/m-p/428775#M67814</guid>
      <dc:creator>dustincurry</dc:creator>
      <dc:date>2023-06-09T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Printing variables to display box/window</title>
      <link>https://community.jmp.com/t5/Discussions/Printing-variables-to-display-box-window/m-p/428783#M67815</link>
      <description>&lt;P&gt;If your variables have numeric values, you will have to change them to characters with Char(). Then you could concatenate them, for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Text box("2C Slope =" || char(Slope_2C))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would use Lineup Box in case like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here(1);

Slope_1C = 1;
Offset_1C = 2;
Slope_2C = 3;
Offset_2C = 4;

New Window("Slopes and Offsets",
	Lineup Box(N Col(2),
		Text Box("1C Slope = "),
		Text Box(char(Slope_1C)),
		Text Box("1C Offset = "),
		Text Box(char(Offset_1C)),
		Text Box("2C Slope = "),
		Text Box(char(Slope_2C)),
		Text Box("2C Offset = "),
		Text Box(char(Offset_2C)),
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1634750644235.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36870iC4AB006650E1980D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1634750644235.png" alt="jthi_0-1634750644235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 17:24:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Printing-variables-to-display-box-window/m-p/428783#M67815</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-20T17:24:17Z</dc:date>
    </item>
  </channel>
</rss>

