Hello
I'm having a bit of trouble selecting columns from a data table and copying them to a new blank table.
So far I'm stuck on how to even copy the column names to the new table.
In my workflow I prompt the user to select 2 data column from an existing table using the column dialog function, then from there attempt to move everything over.
Here's the code:
CD = Column Dialog(
Col1 = ColList( "Select First Data Column", Min Col( 1 ), Max Col(1) ),
Col2 = ColList( "Select Second Data Column", Min Col( 1 ), Max Col(1) )
);
RemoveFrom(CD, 3);
name1 = r1["Col1"];
dt = New Table();
dt << New Column();
Column(1) << Set Name(char(name1));
When I use the show() command to Show(name1) I get:
{:Name( "Outer length-A-1" )}
Instead of just "Outer length-A-1"
Which means my column name ends up being {:Name( "Outer length-A-1" )}
How do I reference just this name??
Also, is there a built in function for simply copying the entire column to my new table??
thanks