DetachRange(TabRange: ITabRange): Boolean;
TabRange - cell range.
The DetachRange method unbinds a cell range from the slice data. The method returns True when completed successfully or False when failed.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Report: IPrxReport;
SheetT : IPrxTable;
Range : ITabRange;
Result : Boolean;
Begin
SheetT := Report.Sheets.Item(0) As IPrxTable;
Range := SheetT.TabSheet.Cells(0, 0, 3, 2);
Result := SheetT.DataBinding.DetachRange(Range);
If Result Then
WinApplication.InformationBox("Unbinding complete");
Else
WinApplication.InformationBox("Unbinding failed");
End If;
End Sub UserProc;
After executing the example an appropriate message is displayed depending on the result.
See also: