RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetValueArray Method

Returns the values of all dimension fields over which a data cell is summarized.

Pascal
function GetValueArray(ACol: Integer; ARow: Integer; var ValueArray: TSmallIntArray): Boolean;
C++
__fastcall Boolean GetValueArray(int ACol, int ARow, TSmallIntArray ValueArray);

Call GetValueArray to obtain the coordinates of a data cell from a decision grid in the multidimensional array maintained by the decision cube. The ACol and ARow parameters represent the indexes of the column and row containing the cell, where (0,0) specifies the upper left data cell, not the top left cell in the grid. The ValueArray parameter returns the indexes of the field values along each active dimension. An index of -1 indicates that the cell represents a subtotal across all values in the corresponding dimension. Use the GetMemberAsString or GetMemberAsVariant method to convert the indexes in the ValueArray parameter into field values. GetValueArray returns a boolean indicating whether the function was successful. 

 

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