RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetGroupCount Method

Returns the number of dimensions there are of a specified type.

Pascal
function GetGroupCount(dimGroup: TDimGroup; bOpen: Boolean): Integer;
C++
__fastcall int GetGroupCount(TDimGroup dimGroup, Boolean bOpen);

Call GetGroupCount to determine how many row, column, or paged dimensions exist in the current pivot state.  

Specify the type of dimension to count as the value of dimGroup. This value can be dgRow, dgCol, or dgPage. Do not use other TDimGroup values with GetGroupCount. 

bOpen indicates whether to count all dimensions (including those currently closed), or only the open dimensions.

Note: You can get the same information about row and column dimensions using the nRowDims, nOpenRowDims, nColDims, or nOpenColDims property.
 

 

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