IVariableStub.FindByKey

Syntax

FindByKey(DimKey: Integer): IDimensionModel;

Parameters

DimKey - dimension key.

Description

The FindByKey method searches for and returns the object that contains data source dimension structure.

Comments

The key, by which search is executed, is passed by the DimKey parameter.

Example

Executing the example requires a stub object of the IVariableStub type.

Sub UserProc;
Var
    stub: IVariableStub;
    FindRes: Boolean;
Begin
    If stub.DimensionCount > 0 Then
        FindRes := stub.FindByKey(1);
    End If;
    If FindRes Then
        Debug.WriteLine(Dimension with the "1" key is found);
    Else
        Debug.WriteLine(Dimension with the "1" key is not found);
    End If;
End Sub UserProc;

If abstract data source contains dimensions, a dimension with the 1 key is searched in them. Search result is displayed in the console window.

See also:

IVariableStub