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 | TableRow |
Name |
getColumnTitle() |
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.getColumnTitle(0)); // Prints "number"
println(row.getColumnTitle(1)); // Prints "mass"
println(row.getColumnTitle(2)); // Prints "name"
}
|
Description |
Returns the name for a column in a TableRow based on its ID (e.g. 0, 1, 2, etc.)
|
Syntax | .getColumnTitle(column) |
Parameters |
column |
int: ID number of the target column |
|
Returns | String |
Updated on April 30, 2017 02:33:20pm EDT