Difference between revisions of "ListBox.Rows"

From Xojo Documentation

Line 1: Line 1:
 +
{{SupportedPlatforms | type=d}}
 
{{MethodBox
 
{{MethodBox
 
| name=Rows
 
| name=Rows
Line 4: Line 5:
 
| ownertype=class
 
| ownertype=class
 
| scope=public
 
| scope=public
| type=d
 
 
| returntype=[[ListBoxRow]]
 
| returntype=[[ListBoxRow]]
 
| newinversion=2019r3
 
| newinversion=2019r3

Revision as of 20:48, 3 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 ListBox.Rows In ListBox1
If row.Tag = "Taxable" then ComputeTaxes(row.Value)
Next