Hi,
I try to delete columns on multiple tables.
In the second For loop I have an invalid argument. but works on the first table only...
Thanks
geof
Open("D:\A.csv");
Open("D:\B.csv");
Open("D:\C.csv");
t_count = N Table();
For(i = 1, i <= t_count, i++,
dt=Data Table(i);
N = N Col(dt);
ColumnstoKeep={"AA","BB"};
ColumnstoTrash = {};
For( j = 1, j <= N, j++,
colname = Column( j ) << getname(); / Debugger said invali argument !?/
If( Contains( ColumnstoKeep, colname ) < 1,
Insert Into( ColumnstoTrash, colname )
);
) ;
dt << delete columns( ColumnstoTrash );
);