RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.GetIndex Method

Returns the row-specific or column-specific index of a dimension.

Pascal
function GetIndex(iDim: Integer; bOpen: Boolean): Integer;
C++
__fastcall int GetIndex(int iDim, Boolean bOpen);

Call GetIndex to obtain the row-specific index or column-specific index of a dimension from its index in the decision cube. GetIndex returns 0 for the first row dimension or the first column dimension. GetIndex returns 1 for the second row dimension or the second column dimension, and so on. The iDim parameter is the absolute index of the dimension. If the bOpen parameter is true, GetIndex is the position of the dimension when only open dimensions are counted. If bOpen is false, all dimensions, including closed dimensions are counted. 

Use the GetGroup method to determine whether the index returned by GetIndex is a row-specific index (GetGroup returns dgRow) or a column-specific index (GetGroup returns dgCol). 

To obtain the index of a dimension in the decision cube from its row-specific or column-specific index, use the GetActiveDim method. 

 

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