deleteRow

deleteRow(row: Integer);

The deleteRow method deletes the row specified in the row parameter from the current sheet of a Table control.

This deletion may affect other table control properties; for example, the row property.

The code fragment in the following example shows the use of the deleteRow property.

tbl.column  := 1;
row         := 1;
while row <= tbl.rows do
    tbl.row := row;
    if tbl.text = "" then
        tbl.deleteRow(row);     // Remove empty rows.
        row := row - 1;         // Move back one row so we don't work
    endif;                      // on the next row.
    row     := row + 1;
endwhile;