IPrxDataIsland.Slice

Syntax

Slice: IPrxSlice;

Description

The Slice property determines the data slice, which is used as a source of the data area.

Example

Executing the example requires a form with the Button1 button, a regular report with the REPORT identifier, which contains a data area. Add links to the Metabase, Report, Ui system assemblies. The example is an event handler for the Button1 button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    DI: IPrxDataIsland;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"REPORT").Bind;
    DI := (MObj 
As IPrxReport).DataIslands.Item(0);
    
// Display a message with the slice name. 
    WinApplication.InformationBox(DI.Sheet.Name, self As IWin32Window);   
End Sub Button1OnClick;

After executing the example clicking the button displays a message with the slice name, which is a data source for the first data area of the REPORT regular report.

See also:

IPrxDataIsland