IMetaDictionaryInstance.CreateLookup

Syntax

CreateLookup([Attributes: String = ""]): IMetaDictionaryLookup;

Parameters

Attributes - list of attributes, by which values search is executed. Names of attributes are separated by the sign ;.

Description

The CreateLookup method creates an object that searches elements of the time series database by specified attribute values.

Example

Executing the example requires a time series database with the OBJ_FC identifier. This database must have time series attributes with the KEY and COUNTRY identifiers.

Sub Main;

Var

Mb: Imetabase;

RubD: IMetabaseObjectDescriptor;

RubrIn: IRubricatorInstance;

DictInst: IMetaDictionaryInstance;

Look: IMetaDictionaryLookup;

Begin

Mb := MetabaseClass.Active;

RubD := Mb.ItemById("OBJ_FC");

RubrIn := RubD.Open(Null) As IRubricatorInstance;

DictInst := RubrIn.Facts;

Look := DictInst.CreateLookup("COUNTRY;KEY");

End Sub Main;

After executing the example, an object is created that searches time series database elements by specified attributes .

See also:

IMetaDictionaryInstance