| Name | clearRows() |
|---|---|
| Examples |
table = Table()
table.addColumn("name")
table.addColumn("type")
newRow = table.addRow()
newRow.setString("name", "Lion")
newRow.setString("type", "Mammal")
newRow = table.addRow()
newRow.setString("name", "Snake")
newRow.setString("type", "Reptile")
newRow = table.addRow()
newRow.setString("name", "Mosquito")
newRow.setString("type", "Insect")
print(table.getRowCount()) # Prints 3
table.clearRows()
print(table.getRowCount()) # Prints 0
|
| Description | |
| Syntax | |
| Related |
addRow() removeRow() |
Cover
Reference
Tutorials
Examples
Bugs
