ListBox.LastColumnIndex

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aListBox.LastColumnIndex

New in 2019r2

Supported for all project types and targets.

The number of the last column of the ListBox. Because the ListBox is zero-based, this value will be 1 less than the ListBox.ColumnCount.