DataControl.Database
From Xojo Documentation
Property (As Database Class )
aDataControl.Database = newDatabase ClassValue
or
Database ClassValue = aDataControl.Database
Supported for all project types and targets.
or
Database ClassValue = aDataControl.Database
Supported for all project types and targets.
The database to which the control is linked.
Example
The following example is in the Open event of the control. It refers to a SQLite database that has been added to the project:
Me.Database = MyDatabase