RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetDataAsString Method

Returns the data value that should appear in the cell of a decision grid, formatted as a string.

Pascal
function GetDataAsString(ARow: Integer; ACol: Integer; var SubLevel: Integer): String;
C++
__fastcall AnsiString GetDataAsString(int ARow, int ACol, int SubLevel);

Call GetDataAsString to obtain the display string for 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. 

GetDataAsString 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. GetDataAsString returns the final summary value, formatted as a string. 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!