cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

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

print get selected from list box

Hello, 

I want to vizualise the file who was selected from my list box with "print",  but I don't see it appear in the window LOG. 

Thank you.

NetflixCrow956_0-1647507366474.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: print get selected from list box

<< Get Selected is correct message to use, but the placement for it seems to be a bit wrong. When do you want to print it to log? When selection is changed? When some button is pressed?

Below are few examples, maybe you just placed some brackets to wrong place:

Names Default To Here(1);
nw = New Window("Example", 
	b = List Box({"single", "double", "triple"}, nlines(10));
);
wait(1);
b << Set Selected(2);
wait(1);
show(b << get selected);
wait(1);
nw << Close Window;

New Window("Example", 
	b = List Box({"single", "double", "triple"}, nlines(10), show(b << get selected));
);
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: print get selected from list box

<< Get Selected is correct message to use, but the placement for it seems to be a bit wrong. When do you want to print it to log? When selection is changed? When some button is pressed?

Below are few examples, maybe you just placed some brackets to wrong place:

Names Default To Here(1);
nw = New Window("Example", 
	b = List Box({"single", "double", "triple"}, nlines(10));
);
wait(1);
b << Set Selected(2);
wait(1);
show(b << get selected);
wait(1);
nw << Close Window;

New Window("Example", 
	b = List Box({"single", "double", "triple"}, nlines(10), show(b << get selected));
);
-Jarmo

Recommended Articles