cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

How does JSL automatically get data for each cell in the selected range of the cursor?

For example, "Big class.jMP "has selected column 1, and column 2 has already selected row 6

2020-11-24_16-25-14.png
How can write JSL to automatically write the cell values of the selected range into a variable?

It looks like this:
s1="TIM"
s2=12

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How does JSL automatically get data for each cell in the selected range of the cursor?

I think this is what you are looking for

s1 = column(dt,(dt<<get selected columns)[1])[(dt<<get selected rows)[1]];
s2 = column(dt,(dt<<get selected columns)[2])[(dt<<get selected rows)[1]];
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How does JSL automatically get data for each cell in the selected range of the cursor?

I think this is what you are looking for

s1 = column(dt,(dt<<get selected columns)[1])[(dt<<get selected rows)[1]];
s2 = column(dt,(dt<<get selected columns)[2])[(dt<<get selected rows)[1]];
Jim
lwx228
Level VIII

Re: How does JSL automatically get data for each cell in the selected range of the cursor?

Thank Jim!

2020-11-24_18-31-55.png

Recommended Articles