RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TQueryDims.Items Property

Lists all dimension items maintained by the TDimensionItems object.

Pascal
property Items [Index: Integer]: TQueryDim;
C++
__property TQueryDim Items[int Index];

Use Items to access individual dimension items maintained by the TDimensionItems object. The first dimension item has an Index of 0, the second dimension item has an Index of 1, and so on. For example, the following C++ code accesses an item to indicate that it can be swapped out of memory:

DecisionCube1->DimensionMap->Items[0]->ActiveFlag = diAsNeeded;

Each dimension item in the Items array represents a field from the data set of a crosstabulated data store. Each dimension item represents either a dimension (a field over which data is summarized), or a summary (a value summarized over the dimensions). 

In Delphi Code, Items is the default property of TDimensionItems. This means that the name of the Items property can be eliminated from code that uses the Items property. Thus, the line

DecisionCube1.DimensionMap.Items[0].ActiveFlag := diAsNeeded;

could be written

DecisionCube1.DimensionMap[0].ActiveFlag := diAsNeeded;

Note: Do not change the Items property. The set of items in the Items array is set automatically to represent the fields from the data set. The properties of individual dimension items within the Items array may be changed to specify whether the dimension items should be cached by the data store, to change the name used when displaying the dimension items, and so on.
 

DataSet 

DimensionMap 

operator_[]

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