Hi friends,
I am trying to rename opened data tables in a project. I have two data tables, one has columns, the other one has 16 columns. I want to name the smaller data table as "Image" (this data contains lots of pictures) and the other one as "Numerical data".
My code works - for the first time. After the code changed the data table names correctly, If I manually change the correct named datable to something else, and run the code again ( I want to test the robustness of the script), it will not work.
Any suggestions are welcome!
Names Default To Here( 1 );
For( i = 1, i <= N Table(), i++,
collName = Data Table( i ) << Get Column Names;
If( N Items( collName ) == 2,
Data Table( i ) << Set Name( "Image" ),
Data Table( i ) << Set Name( "Numerical data" )
);
);