Show contents 

Report > Report Assembly Interfaces > IPrxSlice > IPrxSlice.Key

IPrxSlice.Key

Syntax

Key: Integer;

Description

The Key property returns key of a data source slice.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    Slices: IPrxSlices;
    Slice: IPrxSlice;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("REPORT").Bind;
    Report := MObj As IPrxReport;
    DtSources := Report.DataSources;
    Slices := DtSources.Item(0).Slices;
    Slice := Slices.Item(0);
    Slice.Execute;
    i := Slice.Key;
End Sub UserProc;

After executing the example the "i" variable contains the key of the first slice of the data source. The identifier of the regular report - Report.

See also:

IPrxSlice