IMetaDataMembers.FindById

Syntax

FindById(Id: String): IMetaDataMember;

Parameters

Id - attribute identifier.

Description

The FindById method searches a record in the collection by an attribute identifier.

Example

Executing the example requires a time series database with the OBJ_FC identifier. This database includes a factor with the 94000 key.

Sub Main;

Var

MB: IMetabase;

RubrIn: IRubricatorInstance;

FactD: IRubricatorFactData;

RubRev: IRubricatorRevision;

Members: IMetaDataMembers;

MemberRecord: IMetaDataMemberRecord;

Begin

MB := MetabaseClass.Active;

RubrIn := MB.ItemById("OBJ_FC").Open(Null) As IRubricatorInstance;

RubRev := RubrIn.OpenRevision("Test_Revision");

FactD := RubrIn.GetFactData(94000, DictionaryGetDataOptions.EditExisting);

MemberRecord := FactD.Record;

Members := MemberRecord.Members;

Debug.WriteLine(Members.FindById("REV").Value);

End Sub Main;

After executing the example a value of the REV (Revision) attribute is displayed in the console window for a factor with the 94000 key.

See also:

IMetaDataMembers