next up previous contents
Next: DeleteRow Up: Row methods Previous: AddElementToRow

ClearRow

NAME ClearRow

PROTOTYPE

#include "SSTable.h"

int SSTable::ClearRow(int rowIndex);

EXAMPLE

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

... // do table maniputation 

// clear the first 1/2 rows, but keep them as placeholders
for (int i = 0; i < (pTable->GetNumRows() / 2); i++) {
  pTable->ClearRow(i);
}
PURPOSE

ClearRow erases all of the data in a particular row. It does not remove the row from the table; rather, it keeps placeholders. Thus, the number of columns and rows will not change as a result of this operation.

RECEIVES

rowIndex The index of the row to be cleared.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

See also: DeleteRow



Olivera Tosic
12/17/1999