Data.DB.TDataSource.IsLinkedTo
Delphi
function IsLinkedTo(DataSet: TDataSet): Boolean;
C++
bool __fastcall IsLinkedTo(TDataSet* DataSet);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TDataSource |
Description
Checks whether a data source is linked to a specified dataset.
Call IsLinkedTo to verify that a data source is linked to a specific dataset. DataSet is the name of the dataset to which the data source should be linked.
If the data source already uses the specified dataset (or its parent dataset if the specified dataset is nested in another dataset), IsLinkedTo returns true. If the data source does not use the specified dataset IsLinkedTo returns false.
Note: IsLinkedTo is a low-level method mainly of interest to component developers who need to detect circular data references. Otherwise IsLinkedTo should not be called directly.