UndoEx(Count: Integer);
Count. The number of operations to be cancelled.
The UndoEx method cancels several operations, the number of which is passed as the Count parameter.
Sub Macro;
Var
Rep: IPrxReport;
Tab: ITabSheet;
View: ITabView;
i: Integer;
Begin
Rep:=PrxReport.ActiveReport;
Tab:=Rep.ActiveSheet.Table;
View:=Tab.View;
i:=Tab.Cell(0,0).Value As integer;
If View.UndoCount>=i Then
View.UndoEx(i);
End If;
End Sub Macro;
This example is a macro for a regular report. After executing this macro the last operations are cancelled. The number of operations is specified in he A0 cell.
See also: