ISpecialObjects.SpecialObject

Syntax

SpecialObject(Index: MetabaseSpecialObject): IMetabaseObjectDescriptor;

Parameters

Index - a type of a special repository object.

Description

The SpecialObject property determines an object that is the special repository object. The type of special object is sent by the Index parameter.

Example

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:

ISpecialObjects