RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSource.IsLinkedTo Method

Checks whether a data source is linked to a specified dataset.

Pascal
function IsLinkedTo(DataSet: TDataSet): Boolean;
C++
__fastcall Boolean IsLinkedTo(TDataSet 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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!