ListBox.Rows

From Xojo Documentation

Revision as of 14:21, 10 December 2019 by PLefebvre (talk | contribs) (Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Method

ListBox.Rows() As ListBoxRow

New in 2019r3

Supported for all project types and targets.

Allows you to iterate through all the rows in a ListBox.

Examples

In this example, the Tag of each row is examined and if it's found to be "Taxable", the ComputeTaxes method is called and passed the value of the row.

For Each row As ListBoxRow In ListBox1.Rows
If row.Tag = "Taxable" then ComputeTaxes(row.ColumnValueAt(0))
Next