Name(Value: LocaleCodeID): String;
Value. Language.
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.
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 the example an object name for the German language is added.
See also: