selectedNext

selectedNext(r: Integer io;
             c: Integer io): Boolean;

The selectedNext method of the Table class returns the next selected cell following the row and column specified in the r and c parameters, respectively, for the current sheet of a table.

The selectedNext method allows logic to step through the selected cells, and it returns true if another selected cell is located or false if none is located.

The following example steps through all of the selected cells of the current sheet of a table.

vars
    row : Integer;
    col : Integer;
begin
    while table1.selectedNext(row, col) do
        ...                               // do some processing here
    endwhile;
end;