IMetabaseObjectName.IsDefault

Syntax

IsDefault: Boolean;

Description

The IsDefault property returns True if object name is used by default.

Comments

The property is read-only. The default name corresponds to the default language selected for the repository (IMetabase.DefaultLocale). The default name is used to display an object name if there is no name in the current repository language (IMetabase.CurrentLocale).

Example

This example requires that the repository contains an object with the Object identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    Obj: IMetabaseObjectDescriptor;
    NameLocale: IMetabaseObjectName;
Begin
    Obj := MetabaseClass.Active.ItemById("Object");
    For Each NameLocale In Obj.Names Do
        Debug.WriteLine("------------------------");
        Debug.WriteLine("Locale = " + NameLocale.Locale.ToString);
        Debug.WriteLine("Name = " + NameLocale.Name);
        Debug.WriteLine("Default name = " + NameLocale.IsDefault.ToString);
    End For;
End Sub UserProc;

After executing the example the console window displays all object elements.

See also:

IMetabaseObjectName