SpecialObject(Index: MetabaseSpecialObject): IMetabaseObjectDescriptor;
Index - a type of a special repository object.
The SpecialObject property determines an object that is the special repository object. The type of special object is sent by the Index parameter.
Executing the example requires that the repository contains a map with the RUSSIA identifier.
Sub UserProc;
Var
MB: IMetabase;
SpecObj: ISpecialObjects;
Begin
MB := MetabaseClass.Active;
SpecObj := MB.SpecialObjects(True);
SpecObj.SpecialObject(MetabaseSpecialObject.DefaultTopobase) :=
MB.ItemById("RUSSIA");
(SpecObj As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the RUSSIA map is set as a default map for the current repository.
See also: