Difference between revisions of "ListBox.Rows"

From Xojo Documentation

(Created page with "N/A")
 
(Examples)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
N/A
+
{{SupportedPlatforms | type=d}}
 +
{{MethodBox
 +
| name=Rows
 +
| owner=[[ListBox]]
 +
| ownertype=class
 +
| scope=public
 +
| returntype=[[ListBoxRow]]
 +
| newinversion=2019r3
 +
}}
 +
{{Description
 +
|text = 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.
 +
<rbcode>
 +
For Each row As ListBoxRow In ListBox1.Rows
 +
  If row.Tag = "Taxable" then ComputeTaxes(row.ColumnValueAt(0))
 +
Next
 +
</rbcode>
 +
 
 +
[[Category:API 2.0]]

Latest revision as of 14:21, 10 December 2019


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