RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetDimensionMemberCount Method

Returns the number of distinct values to be displayed for a given dimension.

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

Call GetDimensionMemberCount to determine the number of values in the dimension identified by the iDim parameter. The iDim parameter is the absolute index of the dimension, where 0 indicates the first active dimension in the decision cube, 1 indicates the second active dimension, and so on. To convert from a row-specific or column-specific dimension index into an absolute dimension index, use the GetActiveDim method. 

GetDimensionMemberCount provides an upper limit to the ValueIndex parameter of the GetMemberAsString or GetMemberAsVariant method.

Note: The value returned by GetDimensionMemberCount may change depending on the pivot state.
 

 

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