FindByKey(DimKey: Integer): IDimensionModel;
DimKey - dimension key.
The FindByKey method searches for and returns the object that contains structure of the data source dimension. The key, by which search is executed, is passed by the DimKey parameter.
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: