Item(Index: Variant): IUserDimLevel;
Index — level index.
The Item property returns an object containing level of calculated dictionary.
Sub Main;
Var
MB: IMetabase;
UsDim: IUserDimension;
UsDimLevs: IUserDimLevels;
UsDimLevel: IUserDimLevel;
s: String;
Begin
MB:=MetabaseClass.Active;
UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
UsDimLevs:=UsDim.Levels;
If UsDimLevs.Count<>0 Then
UsDimLevel:=UsDimLevs.Item(0);
s:=UsDimLevel.Name;
End If;
End Sub Main;
After executing the example the "s" variable contains the name of the first level of the calculated dictionary if any level is created. Calculated dictionary identifier: USER_DIM.
See also: