Show contents 

Report > Report Assembly Interfaces > IPrxTableDataBinding > IPrxTableDataBinding.DetachRange

IPrxTableDataBinding.DetachRange

Syntax

DetachRange(TabRange: ITabRange): Boolean;

Parameters

TabRange - cell range.

Description

The DetachRange method unbinds a cell range from the slice data. The method returns True when completed successfully or False when failed.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    SheetT: IPrxTable;
    Range: ITabRange;
    Result: Boolean;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    SheetT := Report.Sheets.Item(0As IPrxTable;
    Range := SheetT.TabSheet.Cells(0032);
    Result := SheetT.DataBinding.DetachRange(Range);
    If Result Then
        WinApplication.InformationBox("Unbounded");
    Else
        WinApplication.InformationBox("Unbind it not executed");
    End If;
End Sub UserProc;

After executing the example an appropriate message is displayed depending on the result.

See also:

IPrxTableDataBinding