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: GetNumRows Up: General Methods Previous: GetName

GetNumColumns

NAME GetNumColumns

PROTOTYPE

#include "ISTable.h"

int ISTable::GetNumColumns();

EXAMPLE

#include "ISTable.h"

ISTable * pTable = new ISTable("MyTable");

// Add some columns and stuff, then loop over them

for (int i = 0; i < pTable->GetNumColumns(); i++) {
  // Do something to each column
}
PURPOSE

GetNumColumns returns the number of columns in the table.

RECEIVES

No Arguments  

RETURN VALUE

The number of columns in the table.

REMARKS

See also: GetNumRows



Olivera Tosic
6/12/2002

 

© RCSB PDB