cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

JMP Wish List

We want to hear your ideas for improving JMP. Share them here.
Choose Language Hide Translation Bar

Folding block of code

Folding block of code and giving it a title is very useful in the world of programming.

As for now, the only option to fold some code lines is Expr() or Function(). And then I need to run that function or expression - time consuming and adds needless line of code.

Please cosider adding some Fold() function which just folds the code.

 

3 Comments
Jeff_Perkinson
Community Manager
Status changed to: Needs Info

The script editor supports custom keyword lists to allow folding beyond Expr() and Function(). Can you explain what more is needed here?

tom_abramov
Level V

Expr() and Function() can do the job but they have their own purpose. 

And we have to create a variable + call/run them after declaration.

I am using Visual Studio and it is called "region" there. It just creates a fold.

#region CreatingABC

codeABC1

codeABC2

#endregion 

 

Screen Shot 05-18-21 at 04.56 PM.JPG

after you fold it, you see just this:

tom_abramov_0-1621346267946.png

 

 

MarcoNeusserCsl
Level II

Great Idea! I need this too!