Predefined(tPredefined: MetaAttributeKind): IMetaAttribute;
tPredefined - attribute type.
The Predefined property returns an attribute of the specified type from the set.
Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.
Sub Main;
Var
MB: IMetabase;
Rubr: IRubricator;
Facts: IMetaDictionary;
Atts: IMetaAttributes;
AttsSet: IMetaAttributesSet;
BaseSet: IMetaAttributesSet;
Begin
MB := MetabaseClass.Active;
Rubr := MB.ItemById("OBJ_FC").Bind As IRubricator;
Facts := Rubr.Facts;
Atts := Facts.Attributes;
AttsSet := Atts.CreateSubset("", SubsetOperation.Select_);
BaseSet := AttsSet.BaseSet;
Debug.WriteLine(Factor: + BaseSet.Predefined(MetaAttributeKind.Factor).Name);
End Sub Main;
After executing the example an attribute identifier that determines a factor key is displayed in the console window.
See also: