TABLE_GET_SELECTED_ROWS

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

Format

TABLE_GET_SELECTED_ROWS(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_rows integer_value = (eval(TABLE_GET_SELECTED_ROWS(.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).