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()
Updated on Sun Aug 30 12:17:17 2015.
Creative Commons License