TABLE_GET_SELECTED_COLS

Returns the column numbers for the columns in a data table that are currently selected. A column is considered as 'selected' if at least one of its cells is selected.
The function returns an array of integers representing the selected columns in the specified table.

Format

TABLE_GET_SELECTED_COLS(table)

Arguments

 
table
A valid Data table object.

Example

1. interface dialog_box display dialog_box_name = .gui.spline_cremod ...(display any dbox that contains a data table)
2. Manually select one or more of the cells in the table
3. variable create variable_name = sel_cols integer_value = (eval(TABLE_GET_SELECTED_COLS(.gui.spline_cremod.c_tabular.dt_2d))) .. (use the function)
4. Check the value of the created variable against the selection done in step2.
 
Note:  
The function returns a zero to indicate a no-selection condition. The function will also return a zero when the input parameter 'table' is invalid (e.g. the dialog containing the table is not loaded).