IDimLevelInstance.Number

Syntax

Number: Integer;

Description

The Number property returns level's sequence number in the dictionary.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Levels: IDimLevelsInstance;

Level: IDimLevelInstance;

i: Integer;

Begin

MB:=MetabaseClass.Active;

Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;

Levels:=Dimen.Levels;

Level:=Levels.Item(Levels.Count-1);

i:=Level.Number;

End Sub Main;

After executing the example the "i" variable shows sequence number of the last level in the dictionary.

See also:

IDimLevelInstance