LowerBoundI(DimIndex: Integer): Integer;
DimIndex. Number of the dimension, the lower limit of which must be obtained.
The LowerBoundI property returns the lower limit of the dimension, which number is passed as an input parameter.
The difference between the LowerBoundI property and the LowerBound property is its internal implementation, in which work with data is optimized, which, in turn, speeds up work and saves memory when large-sized matrixes are used.
Executing the example requires that the repository contains a cube with the STD_CUBE identifier.
Add links to the Cubes, Dimensions, Matrix, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
CubeInst: ICubeInstance;
MDS: IMatrixDataSource;
DSS: IDimSelectionSet;
M: IMatrix;
i: Integer;
Begin
MB := MetabaseClass.Active;
// Open cube
CubeInst := MB.ItemById("STD_CUBE").Open(Null) As ICubeInstance;
MDS := CubeInst.Destinations.DefaultDestination As IMatrixDataSource;
// Create selection , by which matrix with data will be obtained
DSS := MDS.CreateDimSelectionSet;
For i := 0 To DSS.Count - 1 Do
DSS.Item(i).SelectAll;
End For;
// Calculate output cube matrix
M := MDS.Execute(DSS);
// View information about matrix dimensions
For i := 0 To M.DimensionCount - 1 Do
Debug.Write("Dimension No.: " + i.ToString);
Debug.Write("; Lower limit: " + M.LowerBoundI(i).ToString);
Debug.WriteLine("; Upper limit: " + M.UpperBoundI(i).ToString);
End For;
End Sub UserProc;
After executing the example a matrix with data is created on the basis of a cube. The lower and upper limits by all the dimensions of the output matrix will be displayed in the console.
See also: