The examples I listed before are assuming that you were adding the columns to an already existing data table. If you are creating a data table from scratch and it does not have any rows defined for it, one needs to use the
dt << add rows(100);
to create empty rows, before one can place values in the cells.
Here is a complete example
names default to here(1);
dt=new table("Example");
dt << new column( "Counter using a For Loop" );
dt << add rows(100);
For( i=1, i<= N Rows(dt), i++,
dt:Counter using a For Loop[i] = i;
);
Jim