.. highlightlang:: us .. _tablesetselection: TableSetSelection ================= .. index:: TableSetSelection .. us.tag TableSetSelection table.set New400 :ref:`TableSetSelection` sets the selection. .. function:: bool = TableSetSelection(hTable, rvSel) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hTable Identifies the table object. .. uparam:: rvSel *rvSel* is a vector with four elements specifying a range of rows and columns: .. list-table:: :header-rows: 1 * - Element - Description * - rvSel[1] - Left column of selection * - rvSel[2] - Top row of selection * - rvSel[3] - Right column of selection * - rvSel[4] - Bottom row of selection The column and row numbering starts with 1. Left is smaller than right and top is smaller than bottom. .. us.example **Example** :: ]] [[ .. seealso:: :ref:`overview-table` :sub:`id-653791`