next up previous contents
Next: GetRow Up: Row methods Previous: ClearRow

DeleteRow

NAME DeleteRow

PROTOTYPE

#include "SSTable.h"
int SSTable::DeleteRow(int rowIndex);

EXAMPLE

#include "SSTable.h"
...
SSTable * pTable = new SSTable();

... // do table maniputation 

// delete the first 1/2 rows
for (int i = 0; i < (pTable->GetNumRows() / 2); i++) {
  pTable->DeleteRow(i);
}
PURPOSE

DeleteRow will remove the data from a row, and then the row itself. This is safest method to get rid of a whole row of data. The row can always be reinserted later.

RECEIVES

rowIndex The index of the row to be deleted.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

See also: ClearRow



Olivera Tosic
12/17/1999