WebListBox.ColumnCount

From Xojo Documentation

Property (As Integer )
aWebListBox.ColumnCount = newIntegerValue
or
IntegerValue = aWebListBox.ColumnCount

New in 2010r4

Supported for all project types and targets.

Gets or sets the number of columns in the ListBox. ColumnCount is 1-based.

Example

Setting the number of columns to 2 in the Open event:

Me.ColumnCount = 2


Iterating through the rows and columns to set the cell values:

// Add 5 Rows
For i As Integer = 1 To 5
ListBox1.AddRow("")
Next

For row As Integer = 0 To ListBox1.RowCount - 1
For col As Integer = 0 To ListBox1.ColumnCount - 1
ListBox1.Cell(row, col) = Str(row) + "," + Str(col)
Next
Next