RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.SwapDimIndexes Method

Interchanges the positions of two dimensions.

Pascal
procedure SwapDimIndexes(SdimGroup: TDimGroup; DdimGroup: TDimGroup; SIndex: Integer; DIndex: Integer; bOpen: Boolean);
C++
__fastcall SwapDimIndexes(TDimGroup SdimGroup, TDimGroup DdimGroup, int SIndex, int DIndex, Boolean bOpen);

Call SwapDimIndexes to change the pivot state of the decision grid. SwapDimIndexes interchanges the positions of the dimension indicated by the SIndex and SdimGroup parameters and the dimension indicated by the DIndex and DdimGroup parameters. 

The SdimGroup and DdimGroup parameters specify whether the dimension position is along the rows of a decision grid (SdimGroup or DdimGroup is dgRow), or across the columns of the decision grid (SdimGroup or DdimGroup is false). The SIndex and DIndex parameters indicate the index of the dimension position among the row dimensions or column dimensions, where 0 specifies the first position, 1 specifies the second position, and so on. The bOpen parameter specifies whether closed dimensions are considered when interpreting the SIndex and DIndex parameters. When bOpen is true, only open dimensions are counted.

Note: Do not move a dimension of the Decision Source unless the CurrentSum property specifies an additive summary. Additive Summaries are SUM and COUNT. AVERAGE (unless calculated internally by the Decision Cube), MAX, and MIN are not additive.
 

 

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