<?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 stop code folding in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/332097#M58077</link>
    <description>&lt;P&gt;Is this really a folding issue? It sounds to me like you might have the embedded log turned on. Could you share a screen capture to confirm? If it is the embedded log, right-click in the scripting window and uncheck the Show Embedded Log option.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 01:54:49 GMT</pubDate>
    <dc:creator>Dan_Obermiller</dc:creator>
    <dc:date>2020-11-11T01:54:49Z</dc:date>
    <item>
      <title>How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250304#M49130</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I follow the guideline fold the code, but after click it still not fold, don't know why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to operate through JMP or how to use script to fold the content we want?&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;//fold below arguments as one group
dt1 &amp;lt;&amp;lt; Delete Rows( 10 ); //deletes row 10
dt1 &amp;lt;&amp;lt; Delete Rows( {11, 12, 13} ); //deletes rows 11-13
dt1 &amp;lt;&amp;lt; Delete Rows( 8 :: 25 ); //deletes first 20 rows
dt1 &amp;lt;&amp;lt; Delete Rows( [1 2 3] );
dt1 &amp;lt;&amp;lt; Delete Columns( 3 );
dt1 &amp;lt;&amp;lt; Delete Columns( {3, 4} ); //deletes 3,4 columns

//fold below arguments as one group

dt = New Table( "test",
	addrows( 3 ),
	New Column( "lot", character, values( {"K1", "K2", "K3"} ) ),
	New Column( "SPCval", numeric, values( {} ) ),
	New Column( "EPval", numeric, values( {1, 2, .} ) ),
	New Column( "lotcomment", character, values( {} ) ), 
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Theresa_0-1583221300564.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22097i499282A20DA9E5FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Theresa_0-1583221300564.png" alt="Theresa_0-1583221300564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 12:16:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250304#M49130</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2020-03-03T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250308#M49132</link>
      <description>&lt;P&gt;Code folding recognizes Expressions and Functions.&amp;nbsp; See below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//fold below arguments as one group
zippy = Expr(
	dt1 &amp;lt;&amp;lt; Delete Rows( 10 ); //deletes row 10
	dt1 &amp;lt;&amp;lt; Delete Rows( {11, 12, 13} ); //deletes rows 11-13
	dt1 &amp;lt;&amp;lt; Delete Rows( 8 :: 25 ); //deletes first 20 rows
	dt1 &amp;lt;&amp;lt; Delete Rows( [1 2 3] );
	dt1 &amp;lt;&amp;lt; Delete Columns( 3 );
	dt1 &amp;lt;&amp;lt; Delete Columns( {3, 4} ); //deletes 3,4 columns
	//fold below arguments as one group
	dt = New Table( "test",
		addrows( 3 ),
		New Column( "lot", character, values( {"K1", "K2", "K3"} ) ),
		New Column( "SPCval", numeric, values( {} ) ),
		New Column( "EPval", numeric, values( {1, 2, .} ) ),
		New Column( "lotcomment", character, values( {} ) ),

	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fold.PNG" style="width: 594px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22098iCC309970737BBD57/image-size/large?v=v2&amp;amp;px=999" role="button" title="fold.PNG" alt="fold.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 08:54:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250308#M49132</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-03T08:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250319#M49134</link>
      <description>&lt;P&gt;Adding a little to the reply from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, you can also &lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/add-code-folding-markers.shtml" target="_self"&gt;add your own folding markers&lt;/A&gt;. The JMP Help is always a good resource.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 09:22:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250319#M49134</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-03-03T09:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250473#M49154</link>
      <description>thanks all for your kindly help</description>
      <pubDate>Tue, 03 Mar 2020 23:40:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250473#M49154</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2020-03-03T23:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250477#M49156</link>
      <description>One more question, if i have a long script, which need zip 20+ groups, is there a simple way to zip 20* group at one time?&lt;BR /&gt;&lt;BR /&gt;Is this can realize by "Folding Keywords"? I am not so understand "Folding Keywords" mean.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Mar 2020 00:34:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250477#M49156</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2020-03-04T00:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250479#M49157</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see this script&amp;nbsp; has no Expr() expression, but&amp;nbsp; fold the needed content together.&lt;/P&gt;
&lt;P&gt;Do you know how to group all the needed group by one time? Is "O-dtManu" is the&amp;nbsp; "&lt;SPAN class="fontstyle0"&gt;Folding Keywords".&lt;/SPAN&gt;&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show a example of how to realize below fold job?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Theresa_0-1583282141666.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22142i221BAFA1BB577141/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Theresa_0-1583282141666.png" alt="Theresa_0-1583282141666.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;****You can use below 3 group as a example show to me. Thank you very much.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Print( "load Func_DT.jsl-------------------" );
New Namespace(
	"O_dtManu"
);
//close files with similar names
O_dtManu:closefile = Function( {fn},
	{Default local},
	Try( Close( Data Table( fn ), nosave ) );
	For( i = 2, i &amp;lt; 30, i++,
		Try( Close( Data Table( fn || " " || Char( i ) ), nosave ), Break() )
	);
);
O_dtManu:closefilelist = Function( {fnlist},
	{Default local},
	ncnt = N Items( fnlist );
	For( i = 1, i &amp;lt;= ncnt, i++,
		fn = fnlist[i];
		Try( Close( Data Table( fn ), nosave ), Try( fn &amp;lt;&amp;lt; close window ) );
		For( j = 2, j &amp;lt; 30, j++,
			Try( Close( Data Table( fn || " " || Char( j ) ), nosave ), Break() )
		);
	);
);
//fill missing cell with 0
O_dtManu:fill_miss_0 = Function( {dt, start_col, fillin = 0},
	{Default Local},
	ncnt = N Cols( dt );
	For( k = start_col, k &amp;lt;= ncnt, k++,
		dt_col_type = Column( dt, k ) &amp;lt;&amp;lt; get data type();
		If( dt_col_type == "Numeric",
			For( j = 1, j &amp;lt;= N Rows( dt ), j++,
				If( Is Missing( Column( dt, k )[j] ),
					Column( dt, k )[j] = fillin
				)
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Mar 2020 02:15:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250479#M49157</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2020-03-04T02:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to folding the code?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250487#M49159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16624"&gt;@Theresa&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As both&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;&amp;nbsp;stated previously JMP will use informative or "keywords" to fold the code at or on your preferred location within the script in addition to the defaults of Expr and Function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you would like to fold your code on words, such as, "If"&lt;SPAN&gt;, &lt;/SPAN&gt;"For"&lt;SPAN&gt;, &lt;/SPAN&gt;"For Each Row"&lt;SPAN&gt;, &lt;/SPAN&gt;"While"&lt;SPAN&gt;, &lt;/SPAN&gt;"Try"&lt;SPAN&gt;, &lt;/SPAN&gt;"New Window"&lt;SPAN&gt;, &lt;/SPAN&gt;"V List Box"&lt;SPAN&gt;, &lt;/SPAN&gt;"H List Box" or even "O_dtManu" then place the words in a JSL list { } and save as jmpKeywords.jsl.&lt;/P&gt;
&lt;P&gt;The jmpKeywords.jsl file will need to be saved to a particular &lt;A title="jmpKeywords.jsl file location" href="https://www.jmp.com/support/help/14-2/add-code-folding-markers.shtml" target="_self"&gt;directory depending on your OS&lt;/A&gt; in order for JMP to apply the code folding to your preferred folding words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="custom code folding keywords" style="width: 647px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22145i283D41DEC6E7EE24/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-03-03 20.58.20.png" alt="custom code folding keywords" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;custom code folding keywords&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result after applying custom code folding keywords" style="width: 433px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22146i6367C6096C291C08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-03-03 21.06.44.png" alt="result after applying custom code folding keywords" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;result after applying custom code folding keywords&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The next time you start JMP and launch your script the new locations for the code folding should be applied.&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 02:14:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/250487#M49159</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2020-03-04T02:14:09Z</dc:date>
    </item>
    <item>
      <title>How to stop code folding</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/331374#M58019</link>
      <description>&lt;P&gt;In Script Editor preferences, code folding in unchecked. Yet every script I open is folded in the middle so bottom half of the editor window is blank. I want to see the entire window of code. If I drag the fold to the bottom, save, reopen, the fold is there again.&lt;/P&gt;&lt;P&gt;How can I turn off code folding? JMP Pro 15.2, Mac.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 18:32:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/331374#M58019</guid>
      <dc:creator>rc_hertzy</dc:creator>
      <dc:date>2020-11-09T18:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop code folding</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/332097#M58077</link>
      <description>&lt;P&gt;Is this really a folding issue? It sounds to me like you might have the embedded log turned on. Could you share a screen capture to confirm? If it is the embedded log, right-click in the scripting window and uncheck the Show Embedded Log option.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 01:54:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/332097#M58077</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2020-11-11T01:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop code folding</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/333943#M58176</link>
      <description>&lt;P&gt;Thank you Dan! &amp;nbsp;That was it, as the attached screen clip shows. &amp;nbsp;I hope someone adds that tip to the help on code folding- how to turn it off. &amp;nbsp;-Rick&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 04:40:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-folding-the-code/m-p/333943#M58176</guid>
      <dc:creator>rc_hertzy</dc:creator>
      <dc:date>2020-11-16T04:40:13Z</dc:date>
    </item>
  </channel>
</rss>

