Name: String;
The Name property determines the name of the object.
This example requires that the repository contains an object with the Object identifier that has the name for the Spanish language (Argentina).
Add a link to the Metabase system assembly.
Sub UserProc;
Var
Obj: IMetabaseObjectDescriptor;
NamesL: IMetabaseObjectNames;
NameLocale: IMetabaseObjectName;
Begin
Obj := MetabaseClass.Active.ItemById("Object").EditDescriptor;
NamesL := Obj.Names;
NameLocale := NamesL.FindByLocale(LocaleCodeID.Spanish_Argentina);
NameLocale.Name := "Escenario";
Obj.SaveDescriptor
End Sub UserProc;
After executing the example the name for the Spanish language is changed for the object.
See also: