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 a factor with the 94000 key.
Sub Main;
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 Main;
After executing the example a key of a record with data about a factor is displayed in the console window for the factor with the 94000 key.
See also: