cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

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

Extract list from Get List Check-command

Using the Get List Check command I get the following:

LC = col << Get List Check

The Log will show

LC = List Check({"Argon", "Krypton", "Air"});

How do I extract the list from inside the List Check()-statement? I want to end up with a variable containing the list.

LC_list = {"Argon", "Krypton", "Air"}

1 REPLY 1
ian_jmp
Level X

Re: Extract list from Get List Check-command

Take a look in the Scripting Index for 'Head()' and 'Arg()'.

// Make a table

dt =

New Table( "List Check",

Add Rows( 0 ),

New Column( "Check",

Character,

"Nominal",

List Check( {"A", "B", "C"} ),

Set Values( {} )

)

);

// Get the values of a List Check property into a list

lc = Column(dt, "Check") << getListCheck;

lcList = Arg(lc, 1);


Recommended Articles