ADODB.TCustomADODataSet.Connection
From RAD Studio VCL Reference
Contents |
Delphi Information
From ADODB.pas
property Connection: TADOConnection read GetConnection write SetConnection;
Unit: ADODB
Type: property
Visibility: published
Member Of: TCustomADODataSet
C++ Information
From ADODB.hpp
__property Adodb::TADOConnection * Connection = {read=GetConnection,write=SetConnection};
Unit: ADODB
Type: property
Visibility: public
Member Of: TCustomADODataSet
Description
Specifies the ADO connection component to use.
Use Connection to specify an ADO connection object to use to connect to an ADO data store.
At design-time, select from the list of available TADOConnection objects (if any have been added to the application) invoked from the Object Inspector.
At runtime, set Connection to reference an existing TADOConnection object.
ADOTable1.Connection := ADOConnection1;
ADOTable1->Connection = ADOConnection1;
Note: a connection to an ADO database can be established either using a separate TADOConnection object (configured to connect to the database) or directly with a valid entry in the ConnectionString property.
See Also
Code Samples