cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
OneNorthJMP
Level V

text box new line

Hi JMP expert,

 

Is there a function in JSL to display text box in new line? Below script still want display the text in horizontal direction. Thanks

 

nw = New Window("Reports", <<Journal,
  hlb = H List Box(
    lub = Lineup Box(
      tb1 = Text Box( "Zone1:Cpk<1.33 && DSA>1.5" ) ,
      tb2 = Text Box( "Zone2:Cpk<1.33 && DSA<1.5" ) ,  
      tb3 = Text Box( "Zone3:Cpk>1.33 && DSA>1.5" ) ,  
      tb4 = Text Box( "Zone4:Cpk>1.33 && DSA<1.5" ) ,           
    );
  );
);

2 ACCEPTED SOLUTIONS

Accepted Solutions
thomasz
Level IV

Re: text box new line

Do you mean like this?

nw = New Window("Reports", <<Journal,
  hlb = V List Box(
      tb1 = Text Box( "Zone1:Cpk<1.33 && DSA>1.5" ) ,
      tb2 = Text Box( "Zone2:Cpk<1.33 && DSA<1.5" ) ,  
      tb3 = Text Box( "Zone3:Cpk>1.33 && DSA>1.5" ) ,  
      tb4 = Text Box( "Zone4:Cpk>1.33 && DSA<1.5" ) ,           
  );
);

View solution in original post

pmroz
Super User

Re: text box new line

One text box with embedded newlines will work:

nw = New Window("Reports", 
  tb1 = Text Box( 
"Zone1:Cpk<1.33 && DSA>1.5
Zone2:Cpk<1.33 && DSA<1.5  
Zone3:Cpk>1.33 && DSA>1.5
Zone4:Cpk>1.33 && DSA<1.5") ,           
);

View solution in original post

4 REPLIES 4
thomasz
Level IV

Re: text box new line

Do you mean like this?

nw = New Window("Reports", <<Journal,
  hlb = V List Box(
      tb1 = Text Box( "Zone1:Cpk<1.33 && DSA>1.5" ) ,
      tb2 = Text Box( "Zone2:Cpk<1.33 && DSA<1.5" ) ,  
      tb3 = Text Box( "Zone3:Cpk>1.33 && DSA>1.5" ) ,  
      tb4 = Text Box( "Zone4:Cpk>1.33 && DSA<1.5" ) ,           
  );
);
OneNorthJMP
Level V

Re: text box new line

Thanks for advice. Change from H List Box to V List Box kind of do the tricks.

 

Is that possible that i only have 1 text box but will show 4 new separate line?

txnelson
Super User

Re: text box new line

insert V List Box() around the elements you want in a vertical orientation
Jim
pmroz
Super User

Re: text box new line

One text box with embedded newlines will work:

nw = New Window("Reports", 
  tb1 = Text Box( 
"Zone1:Cpk<1.33 && DSA>1.5
Zone2:Cpk<1.33 && DSA<1.5  
Zone3:Cpk>1.33 && DSA>1.5
Zone4:Cpk>1.33 && DSA<1.5") ,           
);

Recommended Articles