This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.
Class | |||||
---|---|---|---|---|---|
Name | removeColumn() |
||||
Examples | Table table; void setup() { table = new Table(); table.addColumn("id"); table.addColumn("species"); table.addColumn("name"); println(table.getColumnCount()); //Prints 3 table.removeColumn("id"); //Reference by title println(table.getColumnCount()); //Prints 2 } Table table; void setup() { table = new Table(); table.addColumn("id"); table.addColumn("species"); table.addColumn("name"); println(table.getColumnCount()); //Prints 3 table.removeColumn(0); //Reference by ID println(table.getColumnCount()); //Prints 2 } | ||||
Description | Use removeColumn() to remove an existing column from a Table object. The column to be removed may be identified by either its title (a String) or its index value (an int). removeColumn(0) would remove the first column, removeColumn(1) would remove the second column, and so on. | ||||
Syntax | .removeColumn(columnName) .removeColumn(column) | ||||
Parameters |
| ||||
Returns | void | ||||
Related | addColumn() |
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.