IMetabaseObjectNames.Name

Fore Syntax

Name(Value: LocaleCodeID): String;

Fore.NET Syntax

Name[Value: Prognoz.Platform.Interop.ForeSystem.LocaleCodeID]: String;

Parameters

Value. Language.

Description

The Name property determines an object name for the specified language. If there is not a name for the specified language, it will be created.

Fore 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.Name(LocaleCodeId.German_Germany) := "Bühne";
    Obj.SaveDescriptor;
End Sub UserProc;

After executing this example an object name for the German language is added.

Fore.NET Example

To execute the example, add a link to the ForeSystem system assembly.

Imports Prognoz.Platform.Interop.ForeSystem;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Obj:IMetabaseObjectDescriptor;
    NamesL : IMetabaseObjectNames;
Begin
    MB := Params.Metabase;
    Obj := MB.ItemById["OBJECT"].EditDescriptor();
    NamesL := Obj.Names;
    NamesL.Name[LocaleCodeId.lcidGerman_Germany] := "Bühne";
    Obj.SaveDescriptor();
End Sub;

The result of the Fore.NET Example execution matches that of the Fore Example.

See also:

IMetabaseObjectNames