IMetabaseObjectName.IsDefault

Syntax

IsDefault: Boolean;

Description

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

Comments

The property is read-only. Default name corresponds to the language by default that is selected for the (IMetabase.DefaultLocale) repository. 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.

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 this example all object elements are displayed in the console window.

See also:

IMetabaseObjectName