CommonClassName([CasePlural: NameCasePlural = 0]): String;
CasePlural. Case in which the name should be set.
The CommonClassName property returns a name of the repository object class in the specified case.
Executing this example requires that the repository contains a cube with the Cube_1 identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Descr, Desc: IMetabaseObjectDescriptor;
s, s1: string;
Begin
MB := MetabaseClass.Active;
Desc := Mb.ItemById("Cube_1");
s := Desc.CommonClassName(NameCasePlural.Accusative);
s1 := Desc.CommonClassName(NameCasePlural.AccusativePlural);
End Sub UserProc;
After executing the example the "S" variable contains the "standard cube" value, the "S1" variable contains "standard cubes" value.
See also: