IMetaDataMemberRecord.Key

Syntax

Key: Integer;

Description

The Key property returns the record key.

Example

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

Add links to the Metabase, Rds, Cubes system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubrIn: IRubricatorInstance;
    FactD: IRubricatorFactData;
    MemberRecord: IMetaDataMemberRecord;
Begin
    MB := MetabaseClass.Active;
    RubrIn := MB.ItemById("OBJ_FC").Open(NullAs IRubricatorInstance;
    FactD := RubrIn.GetFactData(94000);
    MemberRecord := FactD.Record;
    Debug.WriteLine(MemberRecord.Key.ToString);
End Sub UserProc;

After executing the example a key of a record with data about an indicator is displayed in the console window for the indicator with the 94000 key.

See also:

IMetaDataMemberRecord