Data.DB.TCustomConnection.DataSetCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSetCount: Integer read GetDataSetCount;

C++

__property int DataSetCount = {read=GetDataSetCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TCustomConnection

Description

Indicates the number of datasets associated with the connection component.

Use DataSetCount to determine the number of datasets listed by the DataSets property. Depending on the TCustomConnection descendant, DataSets may include only the active datasets that use the connection component (as is the case with TDatabase and TSQLConnection), or it may list all datasets, regardless of whether they are active (as is the case with TADODatabase and DataSnap connection components TSOAPConnection). If DataSets includes only active datasets, the value of DataSetCount changes when datasets are opened and closed.

Use DataSetCount as an upper bound when iterating through the DataSets property.

See Also


Code Examples