RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDimensionItems.AverageFieldCheck Method

Determines whether the necessary summary dimension items over a base dimension exist so that a dimension item of type dimAverage can be computed.

Pascal
function AverageFieldCheck(Index: Integer; var SumIndex: Integer; var CountIndex: Integer): Boolean;
C++
__fastcall Boolean AverageFieldCheck(int Index, int SumIndex, int CountIndex);

Call AverageFieldCheck to ensure that the necessary summary dimension items exist for creating an average summary. The Index parameter specifies an existing dimension item whose BaseName property specifies the field over which the average should be computed. The SumIndex and CountIndex parameters return the summation and count dimension items that can be used to compute average values. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!