RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetValue Method

Returns the drill value of a drilled or paged dimension.

Pascal
function GetValue(iDim: Integer): Integer;
C++
__fastcall int GetValue(int iDim);

Call GetValue to determine the value focused on by a drilled or paged dimension. Drilled dimensions and paged dimensions display only the data for a single field value along the dimension. GetValue returns the index of that single value. The value itself can be obtained from this index by calling the GetMemberAsString or GetMemberAsVariant method.  

The iDim parameter is the absolute index of the drilled or paged dimension, where 0 specifies the first active dimension in the decision cube, 1 specifies the second active dimension, and so on.

Note: If the dimension is drilled so that it displays only summaries over all the values in the dimension, GetValue returns -1. If the dimension specified by the iDim parameter is not drilled or paged, GetValue returns -1.
 

 

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