selectedCount

selectedCount(): Integer;

The selectedCount method of the Table class returns the number of selected cells in the current sheet of a table.

The value that is returned is equivalent to the code fragment in the following example.

foreach row in 1 to table1.rows do
    foreach col in 1 to table1.cols do
        if table1.getCellSelected(row, col) then
            count := count + 1;
        endif;
    endforeach;
endforeach;
return count;

The selectedCount method of the ListBox class returns the number of entries selected in the list box.