DataControl.FieldCount

From Xojo Documentation

Method

DataControl.FieldCount() As Integer

Supported for all project types and targets.

Returns the number of fields in TableName.

Sample Code

The following example gets the number of fields in the Movies table.

Me.Database = database
Me.TableName = "Movies"
Me.SQLQuery = "SELECT * FROM Movies"
Dim i As Integer
i = Me.FieldCount