DatabaseRow.ColumnCount

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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