Remove(Index: Integer): Boolean;
Index - index of a control.
The Remove method removes the control, which index is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Contr: IPrxReportControls;
s: String;
Begin
MB:=MetabaseClass.Active;
MObj:=MB.ItemById("Report").Edit;
Report:=MObj As IPrxReport;
Contr:=Report.Controls;
If Contr.Remove(0) Then
s:="Remove";
Else
s:="Don't Remove";
End If;
MObj.Save;
End Sub Main;
After executing the example the "s" variable contains "Remove" if the first control of the regular report has been successfully removed. The identifier of the regular report - Report.
See also: