I am trying to create a script to generate new columns based on user input. The input comes from a dialog box, and is in the form of a list of column names, e.g.:
Cols={:Data,:By 1,:By 2};
I want top create a new column "n" with a formula containing the Col Number formula:
New Column("n",formula(Col Number(:Data,:By 1,:By 2)));
However I am stuck at getting the formula:
Col Number({:Data,:By 1,:By 2})
that is with curly brackets. No error is returned, but the formula won't evaluate.
How do I use the list of columns as input for a Col-function?
The number of columns must be allowed to vary.