DatabaseRow.ColumnCount

From Xojo Documentation

Method

DatabaseRow.ColumnCount() As Integer

New in 2019r2

Supported for all project types and targets.

Returns the number of columns in the DatabaseRow.

Sample Code

Sets the number of columns in a listbox (CustomersList) to the number of columns in a database row (row):

CustomersList.ColumnCount = row.ColumnCount