Name

rows()

Examples
def setup():
    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")
    for row in table.rows():
        print(row.getString("name") + ": " + row.getString("type"))

# Sketch prints:
# Lion: Mammal
# Snake: Reptile
# Mosquito: Insect
Description
Syntax
Related getRow()
findRow()
findRows()
matchRow()
matchRows()
Updated on Sun Aug 30 12:17:17 2015.
Creative Commons License