ListBoxRow.Columns

From Xojo Documentation

Revision as of 15:40, 29 December 2019 by PLefebvre (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

ListBoxRow.Columns() As ListBoxColumn

New in 2019r3

Supported for all project types and targets.

Returns a ListBoxColumn which can be used to iterate through the columns of a ListBoxRow.

Example

The following example iterates through all the rows of ListBox1 adding any rows where any column is blank to the rowsWithMissingValues array:

Var rowsWithMissingValues() As ListBoxRow
For Each row as ListBoxRow In ListBox1.Rows
For Each column As ListBoxColumn In row.Columns
If column.Value = "" Then
rowsWithMissingValues.AddRow(row)
Exit
End If
Next
Next