RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: DeleteRow Up: Row methods Previous: AddElementToRow

ClearRow

NAME ClearRow

PROTOTYPE

#include "ISTable.h"

int ISTable::ClearRow(int rowIndex);

EXAMPLE

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

... // 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
  RemoveRow
  CompressTable



Olivera Tosic
6/12/2002

 

© RCSB PDB