| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,6 +69,12 @@ void mousePressed() { | |||
| 69 | 69 | row.setFloat("y", mouseY); | |
| 70 | 70 | row.setFloat("diameter", random(40, 80)); | |
| 71 | 71 | row.setString("name", "Blah"); | |
| 72 | + | ||
| 73 | + // If the table has more than 10 rows | ||
| 74 | + if (table.getRowCount() > 10) { | ||
| 75 | + // Delete the oldest row | ||
| 76 | + table.removeRow(0); | ||
| 77 | + } | ||
| 72 | 78 | ||
| 73 | 79 | // Writing the CSV back to the same file | |
| 74 | 80 | saveTable(table,"data/data.csv"); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments