RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetDataAsVariant Method

Returns the data value that should appear in the cell of a decision grid.

Pascal
function GetDataAsVariant(Arow: Integer; ACol: Integer; var SubLevel: Integer): Variant;
C++
__fastcall Variant GetDataAsVariant(int Arow, int ACol, int SubLevel);

Call GetDataAsVariant to obtain the value of a data cell in a decision grid. The ARow and ACol parameters indicate the row and column numbers of the cell in the decision grid, where (0,0) specifies the top left cell in the data region. 

GetDataAsVariant computes the dimension coordinates in the decision cube that correspond to the row and column indexes, making note of all dimensions over which subtotals must be taken. It then obtains the summary value from the decision cube, combining values for each summarized dimension. GetDataAsVariant returns the final summary value. It also returns the number of summarized dimensions in the SubLevel parameter. 

 

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