Hi, I want to concatenate all open data tables. However, the number of data tables can vary and I want the script to be able to adapt for different number of tables.
This is the code for what I want to do, however I want to have it generalised:
Data Table( N Table() ) << Concatenate(
Data Table( (N Table()-1) ),
Data Table( (N Table()-2) ),
Data Table( (N Table()-3) ),
Data Table( (N Table()-4) ),
Data Table( (N Table()-5) ),
Output Table( "All Temps" ),
Create source column
);
This is code I have tried, an error of unresolved name of output table occurs ( in this case noTemps is 6 )
Data Table( N Table() ) << Concatenate(
For( i = 1, i < (noTemps), i++,
Data Table( (N Table()-i) ),
);
Output Table( "All Temps" ),
Create source column
);