DesktopListBox.Rows

From Xojo Documentation

Method

DesktopListBox.Rows() As DesktopListBoxRow

New in 2021r3

Supported for all project types and targets.

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

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 DesktopListBoxRow In ListBox1.Rows
If row.Tag = "Taxable" then ComputeTaxes(row.ColumnValueAt(0))
Next