RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataStore.GetDimensionMemberCount Method

Returns the number of distinct values for a dimension of the data store.

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

Call GetDimensionMemberCount to determine the number of distinct field values in the dimension specified by the Dimension parameter. Zero specifies the first active dimension, and DimensionCount-1 specifies the last active dimension. 

To obtain the individual values of the dimension, use the GetMemberAsString or GetMemberAsVariant method. GetDimensionMemberCount returns a value that provides an upper limit to the Index parameter of the GetMemberAsString or GetMemberAsVariant method. 

To obtain the name of the dimension referred to by the Dimension parameter, use the GetDimensionName method. 

 

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