Name

findRows()

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")
    newRow = table.addRow()
    newRow.setString("name", "Lizard")
    newRow.setString("type", "Reptile")
    for row in table.findRows("Reptile", "type"):
        print(row.getString("name") + ": " + row.getString("type"))
# Sketch prints:
# Snake: Reptile
# Lizard: Reptile
Description
Syntax
.findRows(value, column)
.findRows(value, columnName)
Parameters
value
column
columnName
Related getRow()
rows()
findRow()
matchRow()
matchRows()
Updated on Sun Aug 30 12:17:17 2015.
Creative Commons License