cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

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

Recommended Articles