RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAggregate.Value Method

Returns the calculated value of the aggregate.

Pascal
function Value: Variant;
C++
__fastcall Variant Value();

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. 

 

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