RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionSource.CloseDimIndexRight Method

Closes a dimension.

Pascal
procedure CloseDimIndexRight(dimGroup: TDimGroup; Index: Integer; bOpen: Boolean);
C++
__fastcall CloseDimIndexRight(TDimGroup dimGroup, int Index, Boolean bOpen);

Call CloseDimIndexRight to close a dimension so that it does not appear in the projection displayed by decision controls that use the decision source. 

CloseDimIndexRight closes the first open dimension after the dimension identified by the Index parameter. 

The dimGroup parameter indicates whether the dimension to be closed is a row dimension (dgRow) or a column dimension (dgCol). No other values for dimGroup should be used with the CloseDimIndexRight method. 

If the dimGroup parameter is dgRow, Index identifies a row dimension, where 0 specifies the first row dimension, 1 specifies the second row dimension, and so on. If the dimGroup parameter is dgCol, Index identifies a column dimension, starting with an index of 0 for the first column dimension. No other values for dimGroup should be used with the CloseDimIndexRight method. To close the first open row or column dimension, set Index to -1. 

The bOpen parameter specifies whether closed dimensions are counted when interpreting Index. Only open dimensions are counted when bOpen is true. 

 

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