IDimElements.Id

Syntax

Id(Element: Integer): String;

Parameters

Element - index of dictionary element.

Description

The Id property returns value of the Identifier attribute for the element with the Element index.

Comments

The IDimAttributeInstance.Value property is used to get value of this property.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Elem: IDimElements;

s: String;

Begin

MB:=MetabaseClass.Active;

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

Elem:=Dimen.Elements;

s:=Elem.Id(10);

End Sub Main;

After executing the example the "s" variable contains value of ID attribute for the tenth dictionary element. Repository object identifier: D_TO.

See also:

IDimElements