Name

removeRow()

Class

Table

Description

Removes a row from a Table object

Examples

  • Table table;
    
    void setup() {
    
      table = new Table();
      
      table.addColumn("name");
      table.addColumn("type");
    
      TableRow newRow = table.addRow();
      newRow.setString("name", "Lion");
      newRow.setString("type", "Mammal");
      println(table.getRowCount());  // Prints 1
    
      table.removeRow(0);  // Removes the first row
      println(table.getRowCount());  // Prints 0
    }
    

Syntax

  • .removeRow(row)

Parameters

  • row(int)ID number of the row to remove

Return

  • void