DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


RemoveMarkedRows

Declaration: TDataTable.RemoveMarkedRows (FirstRow, LastRow: integer; CSMask: byte): integer;
The method RemoveMarkedRows deletes all rows in the range from FirstRow to LastRow which contain at least one data cell whose cell state (partially) matches the parameter CSMask (i.e. a bitwise AND of the cell state and the CSMask is not zero). The size of the table is automatically decreased by the number of matched rows.

The function returns the number of deleted rows if everything is OK or -1 if the FirstRow or the LastRow parameter is out of range.

Hint: Setting both FirstRow and LastRow to zero values is a shortcut for setting FirstRow=1 and LastRow=NrOfRows, i.e. the entire data table is scanned for matching cells if both parameters are set to zero.