SpecialObjects(ForEdit: Boolean): ISpecialObjects;
ForEdit - the parameter that defines if there will an opportunity to change parameters of special objects.
If the True value is passed as a parameter value, there will be an opportunity to change parameters of special objects.
If the False value is passed as a parameter value, parameters of special objects are available only for reading.
The SpecialObjects property returns collection of special repository objects.
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 this example the RUSSIA map is set as a default map for the current repository.
See also: