<?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: How to construct a &amp;quot;Variable&amp;quot; V List (or H List) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/438044#M68671</link>
    <description>&lt;P&gt;Immediately saw my mistake as soon as I sent the reply:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works perfectly, much more elegant!&lt;/P&gt;
&lt;P&gt;Thank you again for all the help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;coltwin_1 = V List Box();
		For(i=1, i&amp;lt;=n, i++,
		
			s = Open(SD1 || samplename2 || "_a" || Char(i) || ".jpg", jpg);
			s &amp;lt;&amp;lt; Scale(.15);
			col = Open(SD1 || samplename2 || "_a" || Char(i) || "_filt.jpg", jpg);
			col &amp;lt;&amp;lt; Scale(.16);
			LT = Open(SD1 || samplename2 || "_a" || Char(i) || "_L.jpg", jpg);
			LT &amp;lt;&amp;lt; Scale(.16);
			
			H_list = H List Box(s, col, LT, spacer box(size(50,0)));
			
			InsertInto(coltwin_1, H_list);
			InsertInto(coltwin_1, sp = Spacer Box( size(0, 100)));
		);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Nov 2021 16:10:43 GMT</pubDate>
    <dc:creator>NRW</dc:creator>
    <dc:date>2021-11-18T16:10:43Z</dc:date>
    <item>
      <title>How to construct a "Variable" V List (or H List)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/437779#M68655</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the following expression to populate a PowerPoint slide. Usually it's three rows lined vertically. However, I was looking for a more &lt;STRONG&gt;elegant&lt;/STRONG&gt; way to set up a conditional statement to make the items in the V List variable. That is sometimes I will want only one row vs. three. Or maybe more than three rows. I put a commented "If" statement just to visualize what I'm after (obviously this does not work).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ultimately looking for a more flexible way to arrange not only V List, but H List as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Neil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;coltwin_1 = Expr( 								// Layout for surface orientation					
					V List Box(
						H List Box(
							sem1,
							col1 ,
							LT1 ,
							spacer box(size(50,0))	
						),
					//If (n &amp;gt; 1,
							sp1 = Spacer Box( size(0, 100)),
							H List Box(
								sem2,
								col2,
								LT2,
							),
							sp2 = Spacer Box( size(0, 100)),
							H List Box(
								sem3,
								col3,
								LT3
							)
					//);				
				));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:05:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/437779#M68655</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2023-06-09T18:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct a "Variable" V List (or H List)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/437886#M68662</link>
      <description>&lt;P&gt;Everyone develops their own style, and here's one:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

tb = TextBox( "Hello world" );

n1 = 3;
vlb1 = VListBox();
for(i=1, i&amp;lt;=n1, i++, InsertInto(vlb1, tb));
NewWindow(Char(n1)|| " display boxes in a Vertical List Box", vlb1);

n2 = 5;
vlb2 = VListBox();
for(i=1, i&amp;lt;=n2, i++, InsertInto(vlb2, tb));
NewWindow(Char(n2)|| " display boxes in a Vertical List Box", vlb2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also look at 'LineUpBox()'.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 09:28:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/437886#M68662</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-11-18T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct a "Variable" V List (or H List)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/438032#M68670</link>
      <description>&lt;P&gt;Many thanks for reply and input. I'm working on overhauling my clumsy approach and introducing what you have suggested. I included "commented" old approach to illustrate what was working in static mode. I've got image file sets with "a1", "a2", and "a3" suffixes. However, I'm still getting one row (H list) that is displayed and it is the "a3" set. Index did ratchet 1-3, but final image set was the last read. As if a1 and a2 sets were overwritten.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for all your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For(i=1, i&amp;lt;=n, i++,
		
			sem = Open(SD1 || samplename2 || "_a" || Char(i) || ".jpg", jpg);
			sem &amp;lt;&amp;lt; Scale(.15);
			col = Open(SD1 || samplename2 || "_a" || Char(i) || "_16col_filt.jpg", jpg);
			col &amp;lt;&amp;lt; Scale(.16);
			LT = Open(SD1 || samplename2 || "_a" || Char(i) || "_LtIm.jpg", jpg);
			LT &amp;lt;&amp;lt; Scale(.16);
			
			coltwin_1 = V List Box();
			H_list = H List Box(sem, col, LT, spacer box(size(50,0)));
			InsertInto(coltwin_1, H_list);
			
		);
		
		
		//sem1 = Open(SD1 || samplename2 || "_a1.jpg", jpg);
		//sem1 &amp;lt;&amp;lt; Scale(.15);
		//col1 = Open(SD1 || samplename2 || "_a1_16col_filt.jpg", jpg);
		//col1 &amp;lt;&amp;lt; Scale(.16);
		//LT1 = Open(SD1 || samplename2 || "_a1_LtIm.jpg", jpg);
		//LT1 &amp;lt;&amp;lt; Scale(.16);
		//sem2 = Open(SD1 || samplename2 || "_a2.jpg", jpg);
		//sem2 &amp;lt;&amp;lt; Scale(.15);
		//sem3 = Open(SD1 || samplename2 || "_a3.jpg", jpg);
		//sem3 &amp;lt;&amp;lt; Scale(.15);
		//col2 = Open(SD1 || samplename2 || "_a2_16col_filt.jpg", jpg);
		//col2 &amp;lt;&amp;lt; Scale(.16);
		//col3 = Open(SD1 || samplename2 || "_a3_16col_filt.jpg", jpg);
		//col3 &amp;lt;&amp;lt; Scale(.16);
		//LT2 = Open(SD1 || samplename2 || "_a2_LtIm.jpg", jpg);
		//LT2 &amp;lt;&amp;lt; Scale(.16);
		//LT3 = Open(SD1 || samplename2 || "_a3_LtIm.jpg", jpg);
		//LT3 &amp;lt;&amp;lt; Scale(.16);	

/*coltwin_1 = Expr( 													
					V List Box(
						H List Box(
							sem1,
							col1 ,
							LT1 ,
							spacer box(size(50,0))	
						),
					
						sp1 = Spacer Box( size(0, 100)),
						H List Box(
							sem2,
							col2,
							LT2,
						),
						sp2 = Spacer Box( size(0, 100)),
						H List Box(
							sem3,
							col3,
							LT3
						)
							
				));*/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Nov 2021 15:43:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/438032#M68670</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-11-18T15:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct a "Variable" V List (or H List)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/438044#M68671</link>
      <description>&lt;P&gt;Immediately saw my mistake as soon as I sent the reply:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works perfectly, much more elegant!&lt;/P&gt;
&lt;P&gt;Thank you again for all the help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;coltwin_1 = V List Box();
		For(i=1, i&amp;lt;=n, i++,
		
			s = Open(SD1 || samplename2 || "_a" || Char(i) || ".jpg", jpg);
			s &amp;lt;&amp;lt; Scale(.15);
			col = Open(SD1 || samplename2 || "_a" || Char(i) || "_filt.jpg", jpg);
			col &amp;lt;&amp;lt; Scale(.16);
			LT = Open(SD1 || samplename2 || "_a" || Char(i) || "_L.jpg", jpg);
			LT &amp;lt;&amp;lt; Scale(.16);
			
			H_list = H List Box(s, col, LT, spacer box(size(50,0)));
			
			InsertInto(coltwin_1, H_list);
			InsertInto(coltwin_1, sp = Spacer Box( size(0, 100)));
		);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Nov 2021 16:10:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-quot-Variable-quot-V-List-or-H-List/m-p/438044#M68671</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-11-18T16:10:43Z</dc:date>
    </item>
  </channel>
</rss>

