RemoveByKey(Key: Integer): Boolean;
Key - key of a formula area.
The RemoveByKey method removes a formula area by the specified key. The method returns True if the formula area has been removed. Otherwise it returns False.
The following example assumes that there is the Report object with the IPrxReport type.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Report: IPrxReport;
isl: IPrxFormulaIslands;
Begin
isl := Report.FormulaIslands;
If isl.RemoveByKey(2) Then
WinApplication.InformationBox("Formula area deleted ");
End If;
End Sub Button1OnClick;
Clicking the button displays the message if the formula area has been successfully removed.
See also: