If I have a table with five columns:
Column 5 | Column 3 | Column 2 | Column 1 | Column 4 |
data | data | data | data | data |
and I execute this:
dt = Current Data Table();
dt << Move Selected Columns({"Column 1", "Column 2", "Column 3", "Column 4", "Column 5"}, To first)
then I get this:
Column 1 | Column 2 | Column 3 | Column 4 | Column 5 |
data | data | data | data | data |
But if I execute this:
dt= Current Data Table();
list = {"Column 1", "Column 2", "Column 3", "Column 4", "Column 5"};
dt << Move Selected Columns( list, To first);
it fails with an "Unrecognized key word" error.
I need to be able to parameterize the column list, as in the second version. How can I make something like the second version work?