Key: Integer;
The Key property returns the record key.
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(Null) As 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: