I have a column dialog that stores the name of a column into the list "selectedDataPinColumn". I am using a loop to find out which column number that name corresponds to and am referencing the column based on the number found, which works. I am trying to add to a previous selected on the table, and I just cannot seem to get the Select Where function to work with anything other than the hard coded column name, which will not work for me as this need to be dynamic. I have included the main loop below, JMP 16.
For ( i = 1, i <= N Cols (originalTable), i++,
tempColName = Char(Column ( originalTable, i) << Get Name ());
For ( j = 1, j <= N Items (selectedDataPinColumn), j++,
If ( tempColName == Char(selectedDataPinColumn[j]),
originalTable << Select Where ( Column( originalTable, i ) == "GND" | Column (originalTable, i) == "GND & MeasI" | Column (originalTable, i) == "HIZ" | Column (originalTable, i) == "HiZ"*/, Current Selection( "Extend" ));
originalTable << Invert Row Selection();
selectedRows = originalTable << Get Selected Rows ();
selectVsandAs << Close Window();
//originalTable << Delete Rows (selectedRows);
);
);
);