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: GetRow Up: Row methods Previous: DeleteRow

RemoveRow

NAME RemoveRow

PROTOTYPE

#include "ISTable.h"
int ISTable::RemoveRow(int rowIndex);

EXAMPLE

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

... // do table maniputation 

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

RemoveRow will remove the data from a row, and then the row itself. This method is not recommended. See ``Remarks'' below.

RECEIVES

rowIndex The index of the row to be deleted.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

If there is an index on the table, then it would be corrupted after using this method.

See also: ClearRow
  RemoveRow
  CompressTable



Olivera Tosic
6/12/2002

 

© RCSB PDB