RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomADODataSet.Connection Property

Specifies the ADO connection component to use.

Pascal
property Connection: TADOConnection;
C++
__property TADOConnection Connection;

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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!