Name

getColumnCount()

Class

TableRow

Description

Returns the number of columns in a TableRow.

Examples

  • Table table;
    
    void setup() {
    
      table = new Table();
      
      table.addColumn("number", Table.INT);
      table.addColumn("mass", Table.FLOAT);
      table.addColumn("name", Table.STRING);
      
      TableRow row = table.addRow();
      
      println(row.getColumnCount());  // Prints "3"
    }
    

Syntax

  • .getColumnCount()

Return

  • int