cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Jackie_
Level VI

Run radiobox using jsl

Hi,

 

Is there a way to run the radiobox using set?

Tried the following code but doesn't work

Names Default To Here( 1 );
New Window( "Example", r1 = Radio Box( {"Red", "Green", "Blue"},
das = r1 << get selected;
if(r1 == "Green",

Caption("Green"))

 ) );
r1 << set( 2, runscript(1) );
1 REPLY 1
jthi
Super User

Re: Run radiobox using jsl

Syntax is in Scripting Index and you can use Run Script

jthi_0-1697739239587.png

but you do have some mistakes in your script (you should use das instead of r1 in comparison)

Names Default To Here(1);
New Window("Example",
	r1 = Radio Box({"Red", "Green", "Blue"},
		das = r1 << get selected;
		If(das == "Green", 
			Caption("Green")
		);
	)
);
r1 << set(2, runscript(1));
-Jarmo