RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCubeDims.Items Property

Lists all dimension items maintained by the TCubeDims object.

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

Use Items to access individual dimensions or summaries maintained by the TCubeDims object. The first TCubeDim object has an Index of 0, the second has an Index of 1, and so on. 

Each TCubeDim object in the Items array represents a field from the data set of a decision cube. Each 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 TCubeDims. 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 TCubeDim objects within the Items array may be changed to specify whether they should be cached by the data store, the name to use when displaying them, and so on.
 

DataSet 

DimensionMap 

operator_[]

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