Subscribe Bookmark RSS Feed

Extract list from Get List Check-command

martin_snogdahl

Community Trekker

Joined:

Aug 17, 2016

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
ian_jmp

Staff

Joined:

Jun 23, 2011

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);