clearAllSelected

clearAllSelected();

The clearAllSelected method of the Table class clears all the selected properties of all cells for the current sheet of the table.

The clearAllSelected method of the ListBox class clears all selected items in the list box. This method has no effect if the multiSelect property is set to MultiSelect_None, as the listIndex item is always selected.

The method in the following example shows the use of the clearAllSelected method.

cdtable_rowColumnChg(table: Table input) updating;
vars
    indx  : Integer;
    count : Integer;
begin
    if table.row = 1 and table.column > 1 then
        table.sortColumn[1] := table.column;
        table.resort;
        count := table.rows - 1;
        indx  := 1;
        while indx <= count do
            table.setCellText(indx + 1, 1, indx.String);
            indx := indx + 1;
        endwhile;
        table.row    := 1;
        table.column := 1;
        table.clearAllSelected;
    endif;
end;