Datasnap.DBClient.TAggregates.Items

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TAggregates

Delphi

property Items[Index: Integer]: TAggregate read GetItem write SetItem; default;

C++

__property TAggregate* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};

Description

Provides indexed access to the TAggregate objects in the collection.

Use Items to access individual TAggregate objects maintained by TAggregates.

In Delphi, Items is the default property of TAggregates, so the name of the Items property can be left off when using this property. Thus the line



FirstAggregate := TClientDataSet1.Aggregates.Items[0];



can be written



FirstAggregate := TClientDataSet1.Aggregates[0];



See Also