Remove data table column
/Description: Remove a column from a data table.
Assumptions: An optional 'myTable' data table type script parameter.
Warning: Backup Spotfire files before removing columns.
#Pick one of the following data table reference methods: #myTable = Application.Document.Data.Tables['MyDataTable'] #Name method #myTable = Application.Document.ActiveDataTableReference #Active data table method #myTable = Application.Document.Data.Tables.DefaultTableReference #Default data table method #myTable as a data table type script parameter #Script parameter method #Remove by name method myTable.Columns.Remove("NewColumn3") #Remove by object myColumn = myTable.Columns.Item["NewColumn2"] myTable.Columns.Remove(myColumn)