Datasnap.DBClient.TAggregate.Value

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

function Value: Variant;

C++

System::Variant __fastcall Value();

Description

Returns the calculated value of the aggregate.

Call Value to obtain the evaluation of Expression over the group of records specified by GroupingLevel. If GroupingLevel is nonzero (that is, if the aggregate summarizes a subgroup of the records in the client dataset), Value summarizes the data for the group which contains the current record in the client dataset.

If the aggregate is not currently maintained, Value returns Null. An aggregate is not currently maintained when

The Active property is false.

The DataSet property is nil (Delphi) or NULL (C++).

The aggregate summarizes a subgroup and the IndexName property does not match the current index of the client dataset.

See Also