The easiest way to use True DBList is in bound mode, in which it communicates directly with an intrinsic or external data source control to retrieve and update data. Visual Basic 6.0 provides a variety of data sources that work with True DBList in this fashion:
The built-in Data control, which is included in the standard toolbox. This control uses the Microsoft Jet engine to access data.
The Remote Data Control (RDC), which provides access to data stored in a remote ODBC data source.
The ADO Data Control, which uses ActiveX Data Objects (ADO) to establish connections between bound controls and data providers written to the OLE DB specification.
The Data Environment, which provides a design-time interface for building ADO objects that are created and consumed by bound controls at run time.
You can also use any other data control that adheres to the Microsoft data binding specifications, such as Microsoft's Tabular Data Control (TDC), or ComponentOne's True DBWizard.
To use bound mode, set the DataMode property of the list to 0 - Bound at design time, then set the RowSource property of the list to reference an available data source. This can be an intrinsic or external data control on the same Visual Basic form, or a project-wide data source such as the Data Environment. You do not need to fully configure the data source at design time since True DBList automatically responds to changes in the data source at run time. Therefore, you can defer specifying a database table or query until the application is running.
Unlike other bound controls such as DBGrid, the primary data source for a TDBList or TDBCombo control is specified by the RowSource property, not DataSource.The latter is used for update operations, not for populating the list portion of the control. |