Show contents 

Dimensions > Dimensions Assembly Interfaces > IStandardDimIndex > IStandardDimIndex.Primary

IStandardDimIndex.Primary

Syntax

Primary: Boolean;

Description

The Primary property determines whether the index is primary.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dim: IStandardDimension;
    DimInds: IStandardDimIndexes;
    DimIndex: IStandardDimIndex;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    Dim:=MB.ItemById("TAB_DIM").Bind As IStandardDimension;
    DimInds:=Dim.Indexes;
    If DimInds.Count<>0 Then
        DimIndex:=DimInds.Item(0);
        If DimIndex.Primary Then
            s:="Primary";
        Else
            s:="Not primary";
        End If;
    End If;
End Sub UserProc;

After executing the example the "s" variable shows Primary if the first dictionary index is a primary one. Table dictionary identifier: TAB_DIM.

See also:

IStandardDimIndex