IMetabaseObjectNames.Add

Syntax

Add(Value: LocaleCodeID): IMetabaseObjectName;

Parameters

Value. Language.

Description

The Add method adds an object name for a specified language.

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
    MB: IMetabase;
    Obj: IMetabaseObjectDescriptor;
    NamesL : IMetabaseObjectNames;
Begin
    MB := MetabaseClass.Active;
    Obj := MB.ItemById("Object").EditDescriptor;
    NamesL := Obj.Names;
    NamesL.Add(LocaleCodeID.Spanish_Argentina).Name := "Escenario";
    Obj.SaveDescriptor;
End Sub UserProc;

After executing the example the name for the Spanish language (Argentina) is added.

See also:

IMetabaseObjectNames