cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
BabyDoragon
Level II

How to Display Dynamic Variables in Bold within a Textbox

When using a Textbox, we can make words bold like the 'Test' text in the JSL below. However, if I want to display a dynamic variable in bold as well, how can I achieve that?

Variable = "Apple";
New Window( "test",
	Text Box( "<b>Test</b>", <<Markup ),
	Text Box( Variable ),
	Text Box( "<b>Variable</b>", <<Markup ),

);
2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: How to Display Dynamic Variables in Bold within a Textbox

The place to look for this information is the Scripting Index

     Help=>Scripting Index

txnelson_0-1749210590624.png

It will give you all of the messages that can be given to the display object you are targeting(text box), along with it's description and examples of usage

Jim

View solution in original post

jthi
Super User

Re: How to Display Dynamic Variables in Bold within a Textbox

For the whole text box you can do what can be found from scripting index (like Jim did show). You can also build the string with the variable evaluated to a string

Names Default To Here(1);

strvar = "Apple";

nw = New Window( "test",
	Text Box(Eval Insert("no-bold <b>^strvar^</b> no-bold"), <<Markup)
);
-Jarmo

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to Display Dynamic Variables in Bold within a Textbox

The place to look for this information is the Scripting Index

     Help=>Scripting Index

txnelson_0-1749210590624.png

It will give you all of the messages that can be given to the display object you are targeting(text box), along with it's description and examples of usage

Jim
jthi
Super User

Re: How to Display Dynamic Variables in Bold within a Textbox

For the whole text box you can do what can be found from scripting index (like Jim did show). You can also build the string with the variable evaluated to a string

Names Default To Here(1);

strvar = "Apple";

nw = New Window( "test",
	Text Box(Eval Insert("no-bold <b>^strvar^</b> no-bold"), <<Markup)
);
-Jarmo

Recommended Articles