get column names gets just the list of column names
get column references gets the names as strings
so maybe a couple of other ideas too.
open(); //dont have to pick the file, it automatically opens the pic file dialogue
Get the column list, find the position of the pattern and then change the column name using the position at the reference
list=dt<< get column reference(); //gets strings not a list of columns
position=contains(list, column("Carline")); //finds the position of something in a list
column(position)<<setname("Caroline");
or I guess you could get really crazy and substitute in the list and rename all the columns with the list
newlist=substitute(list, string, "Column 1");
dt<<set column names(newlist);
JMP Systems Engineer, Health and Life Sciences (Pharma)