IDimSelectionSchema.Item

Syntax

Item(Index: Integer): IDimSelectionSchemaPrimitive;

Parameters

Index — primitive index in the selection schema.

Description

The Item property returns an object containing selection schema primitive index of which is passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

ObjDesc: IMetabaseObjectDescriptor;

DimSelSchema: IDimSelectionSchema;

SchemaPrimit: IDimSelectionSchemaPrimitive;

i: Integer;

Begin

MB:=MetabaseClass.Active;

ObjDesc:=MB.ItemById("TAB_DIM");

If ObjDesc.Children.Count<>0 Then

If ObjDesc.Children.Item(0).ClassId=1030 Then

DimSelSchema:=ObjDesc.Children.Item(0).Bind As IDimSelectionSchema;

SchemaPrimit:=DimSelSchema.Item(0);

i:=SchemaPrimit.Type;

End If;

End If;

End Sub Main;

After executing the example the "i" variable contains the type of the first primitive of the first schema of dictionary selection. Dictionary identifier: TAB_DIM.

See also:

IDimSelectionSchema