キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示
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 件の受理された解決策

受理された解決策
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

元の投稿で解決策を見る

2件の返信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

おすすめの記事